setVariable in 2 branches with getVariable after junction

I came across the issue when I have 2 branches that are merging together at the end.
I have setVariable in each branch, which do work and variable is set.
But when I try to getVariable, I am always getting ‘null’

[2] output:

{
“var1”: 1
}

[4] input:

{
“variables”: {
“_.var1”: “1”
}
}

[4] output

{}

How to make this work ?

In this scenario, you don’t need to use “get variables” because your scenario is currently connected linearly—data will pass through it regardless.

Additionally, splitting variables through filters and then merging them back into a single node doesn’t make sense, as it defeats the purpose of routing. :slight_smile:

Please let me know what you’re trying to achieve, and I’ll guide you on how to set it up!

You need to use variable name in GetVariable node to get it’s value

1 Like

This is a standard create-or-update flow.
One branch will create a record and set new record ID
And another branch will find a records and set the records ID

By the time I get to the junction, record ID will be set.

Currenly it does not matter if I use getVariable or trying directly pull it from variables. The result is always null.

If you try the above scenario, it gives null.

Thank you !!!

(sorry for 2 messages, I can not put more than 1 media in the message)

Can it be added to docs, as docs are misleading in the current state:

@Raian we need to clarify this in docs

1 Like

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.