How to use Variables in another xmal file?

The variable I created is only working in the main xmal, unable to use them on another xmal file.

HI @VicBerry

Welcome to ui[path community

You can pass the Argument into another XAML file

Check out this video link and thread

Hope it will helps

Regards
Gokul

Hi @VicBerry

You can only use it if you’ve invoked that XAML into Main.

regards
Loveleet Saini

Hey!

Variables are supposed to be used within a workflow. To use them outside a workflow, you will have to use the alternative which is called “argument”. First, you will have to create them from where you want to pull data and later pull them into the main workflow using the “invoke” activity.

This is what it looks like:


image

Explore the “in” & “out” feature of argument and “invoke file” for detailed understanding.

1 Like

Create an argument type ‘in’ on the xaml file where the variable will go, when you invoke the xaml on the import arguments button give the argument the value of the variable

Thankks this worked

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