Some of the data that certain systems within my company outputs depends solely on their employee number.
Their email nickname is the employees surname and their employee number.
| Name |
Given Name |
Surname |
Employee # |
email |
nickname |
| John Smith |
John |
Smith |
1234 |
john.smith@organisation.com |
smith_1234 |
I want to be able to attribute the user profile to the employee. On some sheets, only the Name and Employee Number are listed. I cannot simply concat the name and employee number as some employees have double barrelled surnames that are either hyphenated or separated by a space.
My idea is to use the output from the Teams channel user data to generate a separate list to lookup against.
I have successfully built a flow that populates this data into a List a couple of times a week. I have then tried to add an additional step into the flow that takes the userPrincipalName (email address) from the output of the list members of the Team and then running that through the Get User Profile (V2) connector to get the nickname of each user. The set variable for this was immediately below the Get User Profile as I assumed it would apply this for each user.
When the flow ran, it did apply the user nickname to each user on the List, but it was the nickname of the last user in the list applied to every user.
The above flow is a standard, get data from source, get items from Sharepoint List and the condition is just the length of the row in the list to determine whether to update or create.
Can someone advise how to ensure that correct nickname is applied to each userPrincipalName?
Many Thanks :)