# Call flow based on queue item status,

**URL:** <https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363>\
**Category:** StudioX\
**Tags:** question, studiox, system, activities\
**Created:** [November 13, 2023, 9:03am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363 "2023-11-13T09:03:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazem\_Saleh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hazem_saleh/32/265350_2.png) [@Hazem\_Saleh](https://forum.uipath.com/u/Hazem_Saleh)\
**Post date:** [November 13, 2023, 9:03am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/1 "2023-11-13T09:03:43Z")

</div>

hello all,  
im tryin go assign queue items Status using set\_Transaction\_progress.

i can call in\_TransactionItem.progress.ToString();  
i want to call flow decision based on the status but very unsure how to do it on string base  
here im trying to test on simple string but cant trigger the case i want

 ![image](https://global.discourse-cdn.com/uipath/original/4X/f/9/e/f9e8ae3a9b761f15f5b35cf81e2bf447d448b92c.png)

Regards/Hazem

---

<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 13, 2023, 9:15am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/2 "2023-11-13T09:15:59Z")

</div>

> [@Hazem\_Saleh](#):
>
> but very unsure how to do it on string base

set the type Argument to String  
 ![grafik](https://global.discourse-cdn.com/uipath/original/4X/e/e/f/eef6539eeaf6c7cd9dc9f35aedb6b05411bf854b.png)

then you can define the different braches, representing the different cases

Keep in mind:

> [@Hazem\_Saleh](#):
>
> using set\_Transaction\_progress

> [@Hazem\_Saleh](#):
>
> in\_TransactionItem.progress.ToString();

using the Set Transaction Progress activity will not refresh the existing variable representing the QueueItem.

in other words:  
when using myQueueItemVar within a Set Transaction Progress activity  
Afterwards myQueueItemVar.Progress still will be null, as the Variable is not refreshed

> [@Feature request: Queue Item - Refresh method](https://forum.uipath.com/t/feature-request-queue-item-refresh-method/351429):
>
> lets have an activity or API Method for refreshing a QueueItem e.g. after setting Progess Yes we can do it with available option like get QueueItems and reference filter or ORC API But it will be easier to have it offered by a dedicated option

---

<div class="post-metadata">

**Author:** ![Hazem\_Saleh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hazem_saleh/32/265350_2.png) [@Hazem\_Saleh](https://forum.uipath.com/u/Hazem_Saleh)\
**Post date:** [November 13, 2023, 9:51am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/3 "2023-11-13T09:51:52Z")

</div>

Thanks,  
but i dont have any api. so i have to use QueueItems with the same ref?  
and if i do that during the process is this will over write the in\_transaction item!

/Hazem

---

<div class="post-metadata">

**Author:** ![Hazem\_Saleh](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/hazem_saleh/32/265350_2.png) [@Hazem\_Saleh](https://forum.uipath.com/u/Hazem_Saleh)\
**Post date:** [November 13, 2023, 9:56am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/4 "2023-11-13T09:56:18Z")

</div>

i still dont get the right case i want

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/8/5/8852a4e618eb4416659a379d7e971926d8cd0b8a.png)

here i have just a number as a string if the sting is 2 it should be case 2 right?

or its not related to the case name, if not i cant see in the debug where its evaluate the case value!

Hazem

---

<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 13, 2023, 9:56am UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/5 "2023-11-13T09:56:51Z")

</div>

> [@Hazem\_Saleh](#):
>
> but i dont have any api. so i have to use QueueItems with the same ref?  
> and if i do that during the process is this will over write the in\_transaction item!

not sure, what was meant by this

As mentioned: the local variable will not be refreshed

> [@Hazem\_Saleh](#):
>
> but i dont have any api

we do have the Orchestrator REST API and can use the ID Property from local QueueItem Variable for doing a Round-Trip Call e.g. refreshing the variable

But lets come back to the origin request:

> [@Hazem\_Saleh](#):
>
> but very unsure how to do it on string base

we showed you the setting of TypeArgument to switch on string base

---

<div class="post-metadata">

**Author:** ![rikulsilva](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rikulsilva/32/462189_2.png) [@rikulsilva](https://forum.uipath.com/u/rikulsilva)\
**Post date:** [November 13, 2023, 12:57pm UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/6 "2023-11-13T12:57:41Z")

</div>

Hi @Hazem_Saleh

Check input type in Flow Switch activity and give to it the text input in expression filter. Make sure to respect case sensitive when checking the branch

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/4/f/14f3ad27bc4a1fec430c97670e17aefa2ee634d5.png)

---

<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 16, 2023, 12:58pm UTC](https://forum.uipath.com/t/call-flow-based-on-queue-item-status/694363/7 "2023-11-16T12:58:27Z")

</div>

Closed on November 16, 2023, 12:58pm UTC

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