InsertAt for a collection

Hi,

I have an existing string collection (say of with items “A” and “C”) and how can I add a new string item at index 1 (i.e. adding “B” to existing collection). ‘Add To Collection’ is adding an item at the end.

Can’t we sort collection without using the Invoke sort method in UiPath? Please suggest. Thanks

1 Like

Hi,

You can insert item using Insert method with Invoke Method activity as the following image.

Regards,

2 Likes

Thanks.Worked for me

1 Like

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