Articles → UIPATH → Add Queue Item activity in UiPath

Add Queue Item activity in UiPath






What is a queue?





Purpose of Add Queue Item activity?





Create a new queue


  1. Login to the orchestrator.
  2. In the queues page, click on the "+" button.


  3. Picture showing the queue screen in orchestrator

    Click to Enlarge

  4. In the create queue screen, enter the "Queue Name" and click on the "Add" button.


  5. Picture showing the create queue screen for creating a new queue

    Click to Enlarge


Adding data in the queue


  1. To get the data, we are calling the "Read Text Data" and "Matches" to get the list of email ids in a variable "emailids".


  2. Picture showing the Read Text File and Matches activities for getting the data for queue

    Click to Enlarge

  3. Loop through all the records in the variable "emailids".
  4. Inside the loop, drag and drop the "Add Queue Item" activity.


  5. Picture showing a for each loop for looping through a collection of emails

    Click to Enlarge

  6. Set the "ItemInformation", "Priority", "QueueName" and "Reference" in "Add Queue Item" activity.


  7. Picture showing assigning the iteminformation, reference and queue name attributes in properties window of add new queue activity

    Click to Enlarge

  8. Make sure that the folder name "Shared" is selected.


  9. Picture showing changing the folder from default to shared

    Click to Enlarge

  10. Save and run the bot.



Output


  1. In the orchestrator, go to queues.
  2. For the given queue, click on the "View Transactions".


  3. Picture showing the list of queues in orchestrator

    Click to Enlarge

  4. You can see the list of transactions.


  5. Picture showing the list of transactions in the queue

    Click to Enlarge



Posted By  -  Karan Gupta
 
Posted On  -  Sunday, March 28, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250