The idea here is to have an easier way to have the variables transfer over when you copy activities over to another workflow, instead of having to manually add them in.
I was faced with this task just today (which is how I got to this post).
I tried to look around for options in Studio and find easy ways to migrate variables, but right now there doesn’t seem to be a way.
I ended up modifying the xaml and copy pasting all variable rows from my source workflow to target workflow.
I found them in the <Flowchart.Variables> tag in both cases.
<Flowchart.Variables> <Variable x:TypeArguments="x:Boolean" Name="NewTransaction" /> </Flowchart.Variables>
Really surprised this doesn’t have more votes, it’s something I do quite often and it would be great to just select the entire variable line and paste it over to another workflow.
Very Helpful…!!
We have to make sure the project is not opened in UiPath while copying the code in Xaml files.
Once copied & saved, the variables will be reflected once we open it in UiPath
It is now possible to simply copy paste variables and arguments between your workflows
I marked it as completed.