Loop through QueueItem dict

I created a dictionary with an int key and a queueItem value and I want to loop through this dictionary but I’m not quite sure what type of argument is used for each.

dict: System.Collections.Generic.Dictionary<System.Int32, UiPath.Core.QueueItem>

Hi @Arettu63,

Use a For Each activity and set the TypeArgument to System.Collections.Generic.KeyValuePair(Of Integer, UiPath.Core.QueueItem).

Inside the loop, you can access item.Key as the integer and item.Value as the QueueItem.

@Arettu63

Loop it like this