I have built a workflow within a for each row in a Data Table. I am wanting to write a specific string (“Processed” or “Error: Need to research”) to each row in a new column based on certain conditions. I have already added a new column after the join data table activity. See attached picture:
What I want to do is pass a string to the data table if the first flow is true (i.e. “Error”) and at the end I want to pass the string “Processed” if it goes to the end of the last two decision flows. I know I need a counter + 1 of sorts. I Just dont know where to insert the counter +1 assign activity and the “Value” to update data table.
First. Try you best to not put a flowchart into a for each row (not a good practise)
To solve it. I am not sur. But try to add a variable “count” into the “For each row” activity’s properties called ’ Index". Then use this index to know exactly where you are in the loop and assign what you want into the previous or next row. Like