Union two or more queue items lists

How do I merge queue items from the “Get Queue Items” activity multiple times?

The output parameter is of type System.Collections.Generic.IEnumerable<UiPath.Core.QueueItem>

You can get the queue item data from the transaction item and merge the string using:
TransactionItem.SpecificContent(“value”).ToString

when it is about combining the output of different executed “Get Queue Items” activity have a look here:

@Arettu63

use queueitems1.Concat(queueitems2)

cheers

2 Likes

i have no items in the first queue list and this code gives an error. i need to add 100 items from the second list to the empty list and then a few more times

1 Like

@Arettu63

initialise first using New List(Of QueueItem) in an assign activity

make sure you intialize outside your loop or before loop

cheers

i got error: “Invoke code: Exception has been thrown by the target of an invocation”

My code in Invoke code: QueueItems1 = QueueItems1.Concat(QueueItems2);

@Arettu63

First thing you dont need to use in invoke code..you can use assign activity

When you see that error it means there is something failed inside not sure if you passed the values

But as said please use assign directly

Cheers

1 Like

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