Triggering a label in another flow

(Manali Acharya) #1

I want to go from flow A to flow B (specific section)

I am able to trigger flow B from flow A and reach the required section. However, it skips the first few steps and goes to the next steps. Now these skipped steps have filters on them (that is why they don’t get triggered). If I need to add an “OR” filter (in order to pass the control to the skipped steps), what should this filter be?
I am able to pass metadata when I trigger the target flow B, but when I reach the specific section, where and how do I add the metadata filter? I am unable to understand what this means, “Type any metadata key to use its value”

(Karen Barker) #2

Hi Manali,

The metadata will be passed on the “Trigger a Flow” action in Flow A and you will be able to access this off the trigger output for Flow B.

For example:

In the above screenshot you can see that we are adding 2 pieces of metadata. The key is the name you give the metadata in the left field (Data1 or Data2 in the example. The value is what you’re passing in the right hand field. I’ve set this to Example and Example2, however this could be an output from a previous action in your flow etc.

When we then trigger the flow in the logs you will see at the bottom of the details for your trigger a metadata section:

This can then be used in the next flow either as a filter or in a message etc by referencing the value:

Hope this helps :slight_smile:

(Manali Acharya) #3

Thanks Karen :slight_smile:

I was able to set the metadata (see attached), however the flow that I want
to call, how do I set the meta data to that value?
It does not give me options like newmessage etc. See attached - filter
options.

Where and how should I set metadata in the target flow (I am using a label
here to go to a specific part of the flow). Please note that this action
already has a filter so I need to add the new filter with an “or” option I
presume.

Cheers and Regards,
Manali

(Karen Barker) #4

Hi Manali,

When you trigger the Flow B the metadata will already be passed to it from the trigger a flow action in Flow A.

You are correct that the filter will need to be an “OR” if you already have 1 filter set up. To access the metadata you’ll need to click on the Flow XO icon at the right hand side of the filter value field, choose the Trigger outputs and Metadata from here. You’ll be given a box to type the name you gave the Metadata key in. :slight_smile:

If you’re still having problems can you email support@flowxo.com with a copy of both your flows and we’ll take a better look over exactly what you’re doing. Thanks.

(Manali Acharya) #5

Dear Karen,

I have shared both he flows here:

https://flowxo.com/share/x23rkmd3 9 (MA School Owner)
https://flowxo.com/share/vn89dd8w (One random fact)

I want to jump from the flow “One random fact” to a label in the flow “MA
School Owner”
Kindly take a look and help me identify where I am configuring incorrectly.

Thank you so much :slight_smile:

Cheers and Regards,
Manali

#6

@Manali_Acharya, sorry i can’t see your flows now but i tell you a couple of ideas.

  1. Flow B must be a New Flow trigger and not a New Message
  2. Flow A Trigger action passes a metadata named GotoLabel with value the name of your Label
  3. First action of your flow is a Goto to Label, write {{flow_b.metadata__GotoLabel}} as label name, use filter to check {{flow_b.metadata__GotoLabel}} is not empty.

So you can:

  • trigger Flow B every time with a different value in GotoLabel metadata and jump to different label.
  • you can trigger Flow B without metadata to start from begin
1 Like