This is my scenario.
1.I am iterating data(Name) using ForEach Activity.
2.Now i need to add data(Name) to DataTable to specific column.
3. Same scenario for remaining data also(Mobile, category, ID etc)
4. Once all column data added to Datatable I need to put in DataBase and clear the DataTable.
Okay. If it is possible try to do in one for each, it would be more efficient.
Based on your current scenario, Use Build data table activity with all required columns.
Inside the first for each i.e Name, use add datarow to add only Name data.
Inside other for each, use assign activity.
On change that you can do is…use 4 matches activity at first…and store them
To 4 variables…and I hope all will return same number of values…
So you can use one for loop on one of the matchcollection variables…and for loop properties has a property called index…to which we can add a variable and use it to iterate through remaining match collections