Using REFramework while creating Dispatcher bot how we can add data into the multiple queue item

how we can add data into the multiple queue in dispatcher bot? I am unable to understand how to add data to the multiple queue item in reframework.

Hi @babita_shinde1

Is the data source same for all the queue items?

If yes, when you are adding to 1 queue item using add queue item activity, there only add more queue item activities but provide different queue name and the data you want to add in that queue.

If data source is different for all these queues, better would be to create multiple sequences/workflows for adding data to queue items.

Each workflow read data from its input source and add data to a specific queue items.

Please note, adding queue items should be part of the initialization state in reframework.

my suggestion for Dispatcher would be to use a flowchart model(just not to complicate a tiny robot with simple job).
Build/Fetch your Transaction data in the form of a DataTable and bulk upload these items to Queue.

ELSE

if you dispatcher need to build your transaction data by performing lot of translations, references etc etc, then go for RE framework.
Add your data fetching and processing logic in your “process” state, and add queue item one by one, on the go
(or) build a DataTable and bulk upload all items at once in “End Process” state.

Regards
SG.

@babita_shinde1

if you need to add to multipel queues just use if condition to check based on what you want to change and use the respective queue name in add queue items

cheers

RE Framework isn’t a good choice for a dispatcher. You’re much better off building your dispatcher from scratch, top-down. In other words just read your source data, create your queue items. Most dispatchers don’t need to be but a couple dozen activities.

@babita_shinde1

Share more details like what you are trying to achieve.

To add data into multiple queues in a UiPath REFramework Dispatcher bot, the general approach is:

Use the Add Queue Item activity multiple times, once for each queue, specifying each target queue’s name and the respective data to add.

If the data source is the same for all queues, add conditions and separate Add Queue Item activities for each queue name inside the dispatcher logic.

If the data sources differ per queue, create separate workflows/sequences within the dispatcher to read from each source and add queue items accordingly.

Thanks for details explanation.

1 Like

UiPath Dispatcher To Multiple Queues (REFramework)

  1. Define Queues: e.g., Queue_1, Queue_2, Queue_3.
    2.Config.xlsx: Add queue names — either comma-separated or as a mapping (Type → QueueName).
  2. GetTransactionData.xaml:
  • Loop through your data source (Excel, DB, or any other).
  • Decide queueName dynamically based on a column or value.
  • Use Add Queue Item for one-by-one addition, or Bulk Add Queue Items if using a DataTable.
    Tip: Keep Process.xaml minimal (just log “Item Added”) since Dispatcher only adds to queues.
    4.Disable Set Transaction as in dispatcher we don’t set any Transaction

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