# Multiple Queues with multiple robots

**URL:** <https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358>\
**Category:** Help\
**Tags:** robot, orchestrator, activities\
**Created:** [January 10, 2019, 2:14pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358 "2019-01-10T14:14:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![halcaraz](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@halcaraz](https://forum.uipath.com/u/halcaraz)\
**Post date:** [January 10, 2019, 2:14pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/1 "2019-01-10T14:14:45Z")

</div>

Hi,

I have R1,R2 and R3 Bots and have Q1,Q2 and Q3 Queues , so I’m looking for R1 to execute Q1, R2 Q2, and R3 Q3. How can I assign an specific queue to be executed in an specific robot when scheduling the activity?.

Thank You !

---

<div class="post-metadata">

**Author:** ![MAHESH1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mahesh1/32/266732_2.png) [@MAHESH1](https://forum.uipath.com/u/MAHESH1)\
**Post date:** [January 10, 2019, 2:43pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/2 "2019-01-10T14:43:15Z")

</div>

@halcaraz

Do you want to run same process with diffrent bots and Respective Queues.

If it is so , then Use Get Environment Variable and get User Name store it in a string Variable . Let us take strUserName

Use One Switch Statement.  
Check UserName and Use Get Transaction Item According to it.

For Eg:  
For Robot 1, UserName will be “ABC”  
For Robot 2,UserName will be “XYZ”

If the Value is ABC then use Get Transaction Item and Mention Queue Name as Q1  
If the Value is Equal to XYZ then Use Get Transaction Item and Mention Queue Name as Q2.

Regards,  
Mahesh

---

<div class="post-metadata">

**Author:** ![halcaraz](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@halcaraz](https://forum.uipath.com/u/halcaraz)\
**Post date:** [January 10, 2019, 3:03pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/3 "2019-01-10T15:03:15Z")

</div>

Hi @MAHESH1 thanks for reply  
No, it’s a different process  
Example  
R1: Are a Invoice Processing  
R2: Are Credit Notes

So , in the Q1 i have the info that use in R1 however that info (structure , type value) is different than the info who use R2

---

<div class="post-metadata">

**Author:** ![MAHESH1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mahesh1/32/266732_2.png) [@MAHESH1](https://forum.uipath.com/u/MAHESH1)\
**Post date:** [January 11, 2019, 10:36am UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/4 "2019-01-11T10:36:00Z")

</div>

@halcaraz

Create 3 Diffrent Environments, Add Robot 1 in Enironment1 and Robot 2 in Environment2 and Robot 3 in Environment 3. Create 3 Seperate Process and Give Queue Names Get Transaction Item.  
QueueName  
ProcessName1 : Get Transaction Item should contain Queue1  
ProcessName2 : Get Transaction Item should contain Queue2  
ProcessName3 : Get Transaction Item should contain Queue3

Now Deploy All 3 Process in Orchestrator.  
While Deploying  
Select  
Environment 1 for ProcessName 1  
Environment 2 for ProcessName 2  
Environment 3 for ProcessName 3

Now bots will take Data from Respective Queue.

Regards,  
Mahesh

---

<div class="post-metadata">

**Author:** ![halcaraz](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@halcaraz](https://forum.uipath.com/u/halcaraz)\
**Post date:** [January 11, 2019, 12:10pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/5 "2019-01-11T12:10:34Z")

</div>

Thank You @MAHESH1 😀

---

<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:** [January 14, 2019, 12:10pm UTC](https://forum.uipath.com/t/multiple-queues-with-multiple-robots/87358/6 "2019-01-14T12:10:40Z")

</div>

Closed on January 14, 2019, 12:10pm UTC

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