cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ehernandez
Level: Powered On

Get users profile and update sharepoint list

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

 

4 REPLIES 4
Highlighted
Community Support Team
Community Support Team

Re: Get users profile and update sharepoint list

Hi @ehernandez,

 

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.
ehernandez
Level: Powered On

Re: Get users profile and update sharepoint list

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  

 

Community Support Team
Community Support Team

Re: Get users profile and update sharepoint list

Hi @ehernandez,

 

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.
lovethakker02
Level: Power Up

Re: Get users profile and update sharepoint list

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?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,701)