cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Get users profile and update sharepoint list

How i can use Flow for get Office 365 users and update sharepoint list?

 

5 REPLIES 5
v-xida-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share a bit more about your SharePoint list?

Which column do you want to update with in your SharePoint list?

Further, how do you specify the item that you want to update with?

 

I suppose that you want to use the unique dynamic content of output of "Get user profile" action to filter your SharePoint list and find the certain list item, is it true? I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here i use Flow Button trigger.
  • Add a "Get user profile (V1)" action of Office 365 Users connector, User (UPN) field set to the email address of the user whose profile you want to get.
  • Add a "Get items" action, Filter Query field set to following formula:13.JPG

    Note: Email Address is a customize column within my SharePoint list and we use this column to filter unique list item.

  • Add a "Apply to each" action, input parameter set to output of the "Get items" action. Within "Apply to each", add a "Update item" action, Id field set to ID dynamic content of "Get items" action.

Image reference:14.JPG

 

15.JPG

The flow works successfully as below:16.JPG

Best regards,

Kris

 

 

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi ! Kris

 

I try get all user Office 365 profile info (name, title, department, phone ) and update to contact list of sharepoint or custom contact list. Make recurrent action each 1 day.

 

Thanks again, Kris  

 

Hi @Anonymous,

 

Do you need any help?

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi. I am trying to get user Photo and add it in list. But having issue that junk data is loading in list as Get Profile Photo v2 is returning json and I don't know how to store it in list. My column is single line of text in list. Can you give any details on it?

I have tried the above solution, I have a SharePoint list of user's Office Location and I want to get the associated email address from that location (office location is unique). However, it is only returning the email address of my profile. Any solution? 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,219)