How do I make a global variable, being in a version that global variables do not exist?

I need to save a fact (varchar)
And consume it in another workflow, but the version that I am using UiPath has no global variables.
Being a big project I can’t update.
Any idea of ​​how can it be done?

@mateo_marquez,

Unfortunately no direct option.

You can have workarounds like storing the value you want to be available everywhere into a text file or excel if complex data.

Read the file whichever workflow requires the value and use it modify it for further process.

This is the only way.

Thanks,
Ashok :slight_smile:

Is it a shame :frowning: , would you show me how would you please with a textfile? since it is a single number of 22 characters that I must keep

@mateo_marquez,

Here is sample

Workflow1:

Workflow2:

Output:
image

You can optimize by creating a workflow to read any desired text file into variable.

Sample Code:
Global Variable Sample.zip (4.5 KB)

Thanks,
Ashok :slight_smile:

Storing it in an Asset would be much simpler.

1 Like

And just adding to @postwick answer, if the number shouldn’t be seen by anyone, you can store it as a credential asset and use only the password field.

1 Like

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