Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Is there a way to send variables to a subworkflow?
Like for example, I generate a variable a = 1 in a workflow, then call a subworkflow that takes A value and adds 5 to it. Is it possible? How can I do it?
Solved! Go to Solution.
Hello @CampaignerForLife
In your main wf define the variable like this:
vars.mainWFVar=1;
Master WF:
Then in the Sub-workflow you can use the same variables to add values to it:
vars.varfromMainWF = vars.mainWFVar + 5; logInfo(vars.varfromMainWF)
Sub-workflow
And if you start the mast WF you see the updated added in the logs:
View solution in original post
Views
Likes
Replies