How to add multiple variables to a list using invoke method

Hi, I’m trying to add existing variables I’ve created into a list using Method Name: AddRange but it is in effective. Is there a way to do it.
Thank you so much for helping me out

Hi you can
Try using append item to collection activity

https://docs.uipath.com/activities/other/latest/workflow/append-item-to-collection

Hope this helps you

1 Like

Hello @QUY_T_TAM_8.0_IELTS ,

You can use the Invoke Method to add the variables/values to the list as below :
image

Open the Properties and add your variable/values as below

Regards,
Rohith Prabhu

1 Like

Hi @QUY_T_TAM_8.0_IELTS ,

Could you let us know what did not work with the AddRange method ?

It does work with the below configuration :

I think it has to do with the type of Parameters. For my scenario it is String

Below I have specified 2 example to use the invoke methods . it can help you to understand about it.

image

Regards
Usha

@QUY_T_TAM_8.0_IELTS ,

This doesn’t fully explain us the Scenario, Could you provide us with some screenshots of the implementation to help you further.

Hi @QUY_T_TAM_8.0_IELTS ,
Can you share image about your method?
Regards,
LuongNV