NJ0011
(Nj0011)
March 25, 2022, 10:57am
1
I have been trying to add the string values in Add to Collection activity.
The requirement i have is i need to add the values inside the Add to collection activity inside a foreach row loop.
I am not getting how to add the string values into Add to collection activity.
Please Suggest
arivu96
(Arivazhagan A)
March 25, 2022, 10:59am
2
Hi @NJ0011 ,
Welcome to UiPatgh Forum
Use Add to collection activity to add a string value into Collection.
Regards,
Arivu
NJ0011
(Nj0011)
March 25, 2022, 11:08am
3
@arivu96 , I dont have Idea how to pass the string variables inside the add to collection activity.
Later on I need to pass the collection activity in a add data row activity
Hi @NJ0011 ,
Have you tried setting the TypeArgument as String ?
Kind Regards,
Ashwin A.K
arivu96
(Arivazhagan A)
March 25, 2022, 11:09am
5
Hi @NJ0011 ,
Refer below image
Regards,
Arivu
ppr
(Peter Preuss)
March 25, 2022, 11:10am
6
ensure your Collection as a datatype of List(Of String) is initialized: new List(Of String)
then item is the value
Collection: is your list variable name
ushu
(Usha kiranmai)
March 25, 2022, 8:38pm
7
@NJ0011 Please go through the below video
Gokul001
(Gokul Balaji)
March 26, 2022, 4:37am
8
Hi @NJ0011
Try with ADD TO COLLECTIONS activity
Have a look on the thread
I am getting a string Variable in a for each loop and want to store in a array to right in a data table using Add Row activity.
Can anyone help me please?
HI @NJ0011
Welcome to Community !!
in add to collection activity properties give your collection variable in the Collection field and in item use the string variable
if you are using For Each row in datatable use it like this in the item field
CurrentRow(“ColumnName”).ToString
If you are using For Each
Note: In my screenshot it is throwing error because the add to collection activity is not inside any of the loop activities
Hope this Helps
Regards
Sudharsan
system
(system)
Closed
March 29, 2022, 5:11am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.