I created an IT New User SharePoint list that is populated by a Microsoft form that HR uses. For this sharepoint list I have a power automate job that creates a username and email address that is based off of the new employees first name and last name. This username and email then updates a row in the same sharepoint list.
Example
New employee Name: John Smith
Username Generated: smithjo
Email generated: john.smith@company.com
This power automate job works great but I have made some modifications in case a new user joins and the username and email address is already taken.
Therefore, I have modified my PA job to check if the username already exists and passes the value to a condition (Yes/No) If the username doesn't exist then create the username as smithjo. If the username does exist, then created it as smithjoh. However, when the PA job runs and there is more than one line in the sharepoint then the first condition that is met is then used for all of the different SharePoint lines. It's like the Apply to each command isn't working with a Yes or No condition.
Any suggestions would be greatly appreciated as I have spend a few hours trying to figure this out.
Thank you!!!
Jeff