# Keep variables values between invoke workflow

**URL:** <https://forum.uipath.com/t/keep-variables-values-between-invoke-workflow/389309>\
**Category:** Studio\
**Tags:** variables-management, question, studio\
**Created:** [January 7, 2022, 9:13am UTC](https://forum.uipath.com/t/keep-variables-values-between-invoke-workflow/389309 "2022-01-07T09:13:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loxyms](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loxyms/32/177528_2.png) [@loxyms](https://forum.uipath.com/u/loxyms)\
**Post date:** [January 7, 2022, 9:13am UTC](https://forum.uipath.com/t/keep-variables-values-between-invoke-workflow/389309/1 "2022-01-07T09:13:17Z")

</div>

How to make the variable value to be persistent in a given workflow? I don’t want it to be reset to null each time a given workflow is invoked. I though that ‘Modifiers: Mapped’ would do the trick but it does not.

Scenario: WF1 is invoked for the first time, str\_someVariable is set to some value, later when WF1 is invoked for the second/third time original value of str\_someVariable is kept.

I know I could use OUT argument to remember str\_someVariable value in Main.xaml and then each time provide it as IN argument but I want to know if my approach is doable in UiPath.

---

<div class="post-metadata">

**Author:** ![shreyash\_shirbhate](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shreyash_shirbhate/32/205441_2.png) [@shreyash\_shirbhate](https://forum.uipath.com/u/shreyash_shirbhate)\
**Post date:** [January 7, 2022, 9:16am UTC](https://forum.uipath.com/t/keep-variables-values-between-invoke-workflow/389309/2 "2022-01-07T09:16:08Z")

</div>

Hey @loxyms ,

Simple solution would be you just right that variable into text file and read it again.

Otherwise as you said, just send the values to out\_Argument to the main workflow and then pass it again.

---

<div class="post-metadata">

**Author:** ![mukeshkala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mukeshkala/32/523935_2.png) [@mukeshkala](https://forum.uipath.com/u/mukeshkala)\
**Post date:** [January 7, 2022, 11:06am UTC](https://forum.uipath.com/t/keep-variables-values-between-invoke-workflow/389309/3 "2022-01-07T11:06:59Z")

</div>

Hi @loxyms,

If I understand it clearly - we want to have an variable value to be constant throughout and it should not change.

Some thing to consider -

1. Create an Asset in orchestrator with the value . Now whenever you want to use it - Just use a get asset activity - Pass the Asset Name and get the Value.

2. In case you are using RE Framework - This value could be the part of the constant sheet in the config.xlsx file of Project.

_Thanks,_  
_Mukesh_
