How do use the same variable in different sequences of the same Main.xaml ?
I have a flowchart in which I have created 5 sequences in it. I had created a variable in say sequence1 and want to use dat in sequence5 .
I am not able to do it even though the scope of variable is set to flowchart itself.
Yes I did change the scope to flowchart. The data am getting from Excel and just assigned it to a variable in sequence1. So when I wanted to use the same thing in sequence2 its value is blank
The solution is to pass the variable to the outside scope.
However, validate pf if you didn’t create the variable in duplicate, within each sequence and also, validate if it was not created in the arguments separator.
Hug
ideally you should be able to get the value…try to debug the flow…use writeline after sequence 1 and before sequence 2 nd see where it is getting changed and also see if you have declared the same variable name multiple times as variable with different scopes or if you have declared as an argument and a variable with the same name.
I am actually not able to get the value of that variable in the sequence2 even if there is no duplicate and the scope is set to flowchart.
In the sequence2 I am using that variable in a different browser is that the issue ?
You probably defined the variable more than once. Don’t do that. Define it in Sequence1 then change the scope to the top level (or whatever level contains all the Sequences).
You can use the search and put in the variable name and it’ll show you if you defined it more than once.