I have a PowerApp that people use to log time worked in a SharePoint List. I recently updated the PowerApp to write their Manager (from Office365Users) to a column in the SP List called LeaderName when they submit the form. Now I want to go through the entire SharePoint List and update all the previous records submitted before I added the new LeaderName column.
So, cycle through every entry and use 'Created By' to update LeaderName based on an Office365Users lookup. Any guidance would be greatly appreciated.
Solved! Go to Solution.
Hi @animartis ,
Please try to refer to the following image to configure the Flow.
Hope it helps.
Best Regards,
Flow type: Instant
Trigger Type: Button
Actions:
1) Get Items
2) Get User Profile passing Created By Email
3) Update Item passing the Manager and the ID of the SharePoint Item
Hi @animartis ,
Please try to refer to the following image to configure the Flow.
Hope it helps.
Best Regards,
@v-bacao-msftThis is perfect, thank you so much!
Oops, I spoke too soon. I'm using the Person or Group in my SharePoint list and and when I run the Flow it fails. The only field available in my Flow is LeaderName Claims, which I mapped to the Display Name.
I get this error when I run the Flow.
Hi @animartis ,
Please change the Display name to Email.
Best Regards,
Hi @v-bacao-msft ,
Different error message when I use Mail.
Nevermind, my apologies. I thought you had to use Current Item to keep the fields the same but when I selected the actual names, i.e. ID and Title, it worked fine. Thank you so much!!
User | Count |
---|---|
40 | |
34 | |
16 | |
13 | |
11 |
User | Count |
---|---|
23 | |
18 | |
17 | |
13 | |
12 |