Which activity we can use instead of Clear collection

Hi,
Which activity we can use instead of clear collection, Clear collection activity is not available in the activity panel

1 Like

@Chippy_Kolot

You can reinitialize the collection when you want to clear

For example if its list of string then New List(Of String)

For dictioanry of stirng types New Dictionary(Of String,String)

This can be done in assign activity

Hope this helps

Cheers

Hi

To keep it simple To remove the all elements in a list variable
in a assign activity mention like this
yourlistvariable = Nothing

Cheers @Chippy_Kolot

Hi,

FYI, another approach:

Call listVar.Clear() using InvokeMethod activity as the following.

image

Regards,