Also remember to assign your DUNSlist outside the for loop else you will keep generating a new list i.e. each iteration will use New List(Of String) and empty the previous runs.
You shouldn’t initialize the list (the Assign activity) each time you loop. This empties the list.
Take out the Assign. Put new list(of string) as the default value of DUNSlist. This way it automatically initializes when the job starts.
Now your Get DUNS and Add To Collection activities will work properly and you’ll have what you need. You can use a For Each to loop through DUNSlist (make sure to change the For Each to string instead of object, in the properties pane)
Hope the below steps would help get the list of values
No big changes needed in your step
Just Remove the assign activity with which we are initialising the list variable
Usually it has to be initialised only one else it will create a new variable in every iteration of loop
So finally we will be having only one value in it
In order to avoid that initialise it once in the variable panel itself
That is in variable we can find a default value column where mention the same definition like this New list(of string)
Then in Add to collections mention the output variable of Get text activity to Item property
And
The list varivale name in collections property name
And change the type property as string