Email Automation project with Queue

Hello UiPath Community,

I’m working on an Email Automation project where I need to push incoming emails into an Orchestrator Queue. For each email, I want to store:

  • Subject → used as the unique reference
  • Sender (same for all emails)
  • Email body
  • Attachments (either saved to a folder or encoded as Base64)

Currently, the usual approach would be to use a For Each loop to iterate over the email list and add queue items one by one. However, I’d like to know if there’s a more optimized way:

  • Is there any activity or method in UiPath that allows adding multiple queue items at once (bulk upload)?
  • If bulk isn’t directly supported, is there a way to minimize execution time while ensuring the Subject remains the unique reference for each queue item?
  • What is the best practice here for handling both email body and attachments efficiently?
  • Is it possible to upload multiple emails into an Orchestrator Queue at once without looping through each item individually?
  • How can I ensure the email Subject is used as the unique reference when adding queue items?
  • Can email attachments be included with queue items (either as saved files or Base64) in a single upload process?
  • What is the most efficient approach to push a large number of emails to Orchestrator while maintaining unique references?
  • Are there any recommended best practices for handling both the email body and attachments when queueing emails without relying on a For Each loop?

@Chandru_S,

Use Bulk Add Queue Items to push multiple emails, set Subject as Reference, store Body in SpecificContent, save attachments to folder or Base64, this ensures uniqueness and efficiency without looping. Bulk upload reduces execution time compared to individual Add Queue Item. Best practice is to preprocess email data into a DataTable or JSON and then use Bulk Add for faster queue insertion.

@Chandru_S

Welcome to the community

Please check here its a similar request I have explained there

Cheers