Copy variables over in simplified manner

studio
i_considering

#1

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.


#2

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>

How to import variables from another project
#3

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.