How to dynamically add key/pair values to the Item Information with the Add Queue Item activity

Hello, the “Add Queue Item” activity’s “Item Informations” seems to have a fixed size of key/value pairs defined by the “Add entry” button:

I’m working on a Dispatcher/Perfomer template.
Isn’t there a way to dynamically define the number, the keys and the values of an item to be added ?
Even though its not exactly what I’ve intended to do, I’ve tried to add a dictionary in one of the entries to leverage this, but i get this error :
System.ArgumentException: Could not determine JSON object type for type System.Collections.Generic.KeyValuePair2[System.String,System.Object]. at Newtonsoft.Json.Linq.JValue.GetValueType(Nullable1 current, Object value)
at Newtonsoft.Json.Linq.JContainer.CreateFromContent(Object content)

Do you have any clues or ideas ?

Specs :
UiPath studio 2025.0.161
Entreprise licence
Windows 11

Check this below thread

@lboudev,

Here is how you can do it.

Prepare your dictionary and pass the dictionary variable to item collection property by clicking on plus icon and click on open in expression editor.

1 Like

Thank you it worked perfectly.
Will mark this thread as solved.

1 Like

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