How to add collection from list to object?

Hi experts,

I’m getting the error shown in screen. What Im trying to do is to just add file into AttachList collection. What type should i choose?
It worked perfectly fine using the old Add to Collection Activity previously.

the type varies in the left and right side of the assign activity

ensure that the type argument (for each) is set to String
AttachList datatype has to be of DataType: String List - List(Of String)

When it is about create a string list from the string Array returned form the Directory.GetFiles(…)

we can do it directly by:

Attachlist = Directory.GetFiles(…).ToList()

Hey @sophiey
Are you sure that you have correct variable type?
image

initially i used string list. thats why i m changing to trial and error. because i want to append to collection, and im getting this error

Kindly note what we mentioned:

it will avoid the Append Item … Activity. We can doit in one go using an assign Activity

When working with the combination Parallel For each / Append Item… we ensure the typearguments:


And
grafik
which we already mentioned above

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