I have a workflow that queries multiple lists and creates csv files depending on criteria selected on the Form. I have nested loop and for each actions in my workflow. At the end for each course a csv file should be created with the employees required to attend.
I'm having issues with the csv file picking up previous values.
E.g. Course 1 and Course 2 are selected on the Form and 2 employees are required to attend.
I'm getting 2 csv files: First csv for Course 1 with Employee A and Employee B Course 1 (as expected)
Second csv Course 2 with Employee A and Employee B Course 2 Employee A and Employee B
Course 1 ( including the first csv details) Expected csv for Course 2 would be : Employee A and Employee B Course 2.
If someone could help me figure this out, willing to share more details.