Go to label in another flow

(renata.begnigna@digitalindustry.com.br) #1

Good Morning,

Currently I have two flows. As an example I’ll call flow A and flow B
How could I get Flow B to trigger a “go to a label” and go straight to a specific process in Flow A?

Thank you

(Khashayar) #2

Let’s say the user needs to be kicked to the 6th action of Flow B, after they reach a certain point in Flow A.

First of all, you need to set a difficult to guess trigger for Flow B. Something like 929823874236.
Then, you set a “Go to Flow” action where you need it in Flow A, and choose 929823874236 as the trigger.
Now in Flow B, you make a “Go to Label” action as the first action and filter it for “if Message equals 929823874236”.
So your first action is a “Go to Label” to the 6th action of Flow B (if the action is a label).
Like this, you can trigger Flow B but skip every action if the flow has been triggered using the “Go to Flow” of Flow A.

Does this make sense?

You’d have to pass on the metadata twice as well, since you’re triggering two different “Go to Flow” actions

(renata.begnigna@digitalindustry.com.br) #3

Thank you Khashayar, It worked :slight_smile:

(bill@commongood.center) #4

I’ve got the flows connected, but the “Go to Label” isn’t working in Flow B.

I have the trigger for flow B as “New Message” with the trigger 253651800762. Directly after that I have the “Go To Label” with “{{new_message.message}} EQUALS 253651800762”, then some things between, then my label. It’s not jumping to the label. Any ideas?

(Daniel Beckett) #5

What are you seeing in the Interaction Log? I’ve got a feeling that perhaps your filter isn’t being matched?

If you’re triggering Flow B from Flow A then {{new_message.message}} is likely not going to equal the trigger for Flow B (253651800762).

(Ben Kane) #6

Hi,
I am also having problems with this. Main problem is that my Goto label in target flow is not being recognized. Otherwise, my flow should skip message “should not be seen” and go straight to the target label.

Interaction log says that there is no match between values in Goto and Set Label, so the flow is activated in order as listed on the dashboard. I copy-pasted the key number, so there is no possibility of error here. Any idea why?
Thank you!

(Daniel Beckett) #7

What message is shown in the interaction log for the trigger? Is the right value being picked up?

(Ben Kane) #8

It is not picking it up, although, when it continues down the flow, interaction log shows target label value, which is the same as the trigger one.
Value 9298238742 is mentioned in the Flow A (start flow) only in the context of Trigger a Flow with value 9298238742. Was I supposed to enter this value to some other place also in this flow?
Value 1
(empty)
Condition
equals
Value 2
9298238742
Result
No Match

(Karen Barker) #9

Hi there,

When you use a Trigger a Flow action, the keyword trigger doesn’t populate the message received as it’s internal rather than from a user. What you need to do instead is to pass the message on the metadata of the Trigger a Flow action. You’ll then need to update the filter on the Go To action to look for the metadata value you passed across. :thumbsup:

(Ben Kane) #10

It`s working now. Thank you! :slight_smile: