Hi folks
Building a flow to take data from a csv file and create a new groups in Entra.
During building and testing, the entire flow worked great when I was just pulling a single row from the csv file.
Now I'm trying to put it into an 'Apply to each' to create a group per row of data and I'm getting stuck.
Here's the full flow:
Here's the data in the array (the job titles, departments etc)
Here's inside the 'Apply to each'
Here's inside the 'Select Data' - we can see it's picking up the multiple job titles
Here's inside the 'Compose Job Title' - this is where it's only showing the very first job title from the CSV
This is how the 'Compose Job Title' is composed
And finally, the error when the flow is run:
As you can see, when it is trying to move on to the 2nd job title to create a group, it's still picking up the 1st one which already exists.
Where am I going wrong with this?
Thanks in advance for any help. Apologies for the amount of screenshots above but I figure more info > less info.