# REF Framework variables

**URL:** <https://forum.uipath.com/t/ref-framework-variables/267486>\
**Category:** Help\
**Tags:** reframework, process-orchestration, question, studio, activities\
**Created:** [November 6, 2020, 1:30pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486 "2020-11-06T13:30:00Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 1:30pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/1 "2020-11-06T13:30:00Z")

</div>

Hi Friends,

I have a question, I’m building a process with the REF Framework. Now in the init fase I create 3 variables.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/7/b/7b21cf7c52f4ffafb2599873e6ea01e89a6fa51e.png)

Now I want to have these 3 variables in my Process Transaction.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/5/1/51104ae2152a14739842b11685e76c6a74e9130a.png)

How can I handle this?

---

<div class="post-metadata">

**Author:** ![Sagar\_Gupta1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_gupta1/32/177866_2.png) [@Sagar\_Gupta1](https://forum.uipath.com/u/Sagar_Gupta1)\
**Post date:** [November 6, 2020, 1:32pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/2 "2020-11-06T13:32:31Z")

</div>

You can change scope of those variables than inside process in invoke workflow imports arguments in that workflow then you can use

---

<div class="post-metadata">

**Author:** ![NIVED\_NAMBIAR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nived_nambiar/32/169066_2.png) [@NIVED\_NAMBIAR](https://forum.uipath.com/u/NIVED_NAMBIAR)\
**Post date:** [November 6, 2020, 1:35pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/3 "2020-11-06T13:35:09Z")

</div>

Hi @M_L

Are u creating the varaible inside init all application workflow or outside the workflow ?

Nived N 🤖

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [November 6, 2020, 2:00pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/4 "2020-11-06T14:00:53Z")

</div>

@M_L

- the variables has to be declared within the Main.xaml on Main scope (the most top scope)
- passing it to Process.xaml will be done by arguments defined by the Process.xaml (e.g in Direction)
- in case of the information is only available /defined within another XAML that is get invoked (eg. X.xaml, then
  - this x.xaml is defining the variables as well
  - x.xaml defines arguments (e.g. out direction) for each variable
  - once x.xaml is get invoked by e.g. Main.xaml, the returned out\_argument from x.xaml is to be received from Main.xaml and will be stored on the corresponding Variable created within Main.xaml

---

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 2:27pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/5 "2020-11-06T14:27:41Z")

</div>

Inside 🙂

---

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 2:28pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/6 "2020-11-06T14:28:10Z")

</div>

If I do that, it repeats the whole time the same value.

---

<div class="post-metadata">

**Author:** ![Sagar\_Gupta1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_gupta1/32/177866_2.png) [@Sagar\_Gupta1](https://forum.uipath.com/u/Sagar_Gupta1)\
**Post date:** [November 6, 2020, 2:34pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/7 "2020-11-06T14:34:45Z")

</div>

Yes, In process it will repeat

---

<div class="post-metadata">

**Author:** ![NIVED\_NAMBIAR](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nived_nambiar/32/169066_2.png) [@NIVED\_NAMBIAR](https://forum.uipath.com/u/NIVED_NAMBIAR)\
**Post date:** [November 6, 2020, 2:36pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/8 "2020-11-06T14:36:06Z")

</div>

Since it is inside the workflow

Instead of varible u can create arguments

And transfer the argument value to the variable whose scope is in main

From variable defined in main u can access in process state too

---

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 2:36pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/9 "2020-11-06T14:36:14Z")

</div>

Yes but I have 5 Queue’s. With 5 diffrent amounts in it, It should use every run the next amount and not 5 times the first one.

---

<div class="post-metadata">

**Author:** ![Sagar\_Gupta1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_gupta1/32/177866_2.png) [@Sagar\_Gupta1](https://forum.uipath.com/u/Sagar_Gupta1)\
**Post date:** [November 6, 2020, 2:39pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/10 "2020-11-06T14:39:18Z")

</div>

At each loop or transaction you can modify each time in get transaction

---

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 2:55pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/11 "2020-11-06T14:55:56Z")

</div>

> [@Sagar\_Gupta1](#):
>
> transaction you can modify each time in get transaction

Do you have an example?

---

<div class="post-metadata">

**Author:** ![Sagar\_Gupta1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_gupta1/32/177866_2.png) [@Sagar\_Gupta1](https://forum.uipath.com/u/Sagar_Gupta1)\
**Post date:** [November 6, 2020, 2:58pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/12 "2020-11-06T14:58:07Z")

</div>

Rightnow I don’t have an example but i can help you to modify your code .  
ping me on [sg2070156@gmail.com](mailto:sg2070156@gmail.com)

---

<div class="post-metadata">

**Author:** ![M\_L](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@M\_L](https://forum.uipath.com/u/M_L)\
**Post date:** [November 6, 2020, 3:20pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/13 "2020-11-06T15:20:51Z")

</div>

Oké thank you!!!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 9, 2020, 3:20pm UTC](https://forum.uipath.com/t/ref-framework-variables/267486/14 "2020-11-09T15:20:55Z")

</div>

Closed on November 9, 2020, 3:20pm UTC

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