Name";“Surname”;“Company”;“Address”;“IDType”;“Name”;“Surname”;“Company”;“Address”;“IDType"Name”;“Surname”;“Company”;“Address”;“IDType”
and repeat for 100 rows.
My question is: how can i iterate this CSV and store Name in varName, Surname in varSurname etc.?
The first things i did READ CSV then i erase the “quotes” with replace activity and third operation was split function because the value was separate by “;”
Now i have an array of string with the element and i’ll try to store in a variabile and TYPE INTO a cell…
But how can i do that?
So we need to take four values from array and next four values from array
So for that use a while loop and mention like this counter < arrayvariable.Count
Where counter is a variable of type int32 with default value as 0
And inside the loop use a set of Assign activities like
In the first assign activity Str_name = arrvariable(counter).ToString Str_Surname = arrvariable(counter+1).ToString Str_company = arrvariable(counter+2).ToString Str_address = arrvariable(counter+3).ToString
—now we can use set of activities to use the above variables then atlast inside the while loop use another assign activity like this counter = counter +4