cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EugeneJvR
New Member

Creating a contact list using SPO list and FLOW

Hi all,

 

I need to create a list of users in a SPO list.

 

I created a column(People or Group)

I also created columns "First Name", "Last Name", ""Mobile number", etc

 

When a new item is created in the list the flow needs to "get item" -> "get user profile" and populate the other columns

 

I am stuck right at the start. I do not know how to use the (already completed) field an get it's UPN or email id to start the "get user profile" function

 

Any pointers?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Dev_Nikhil
Advocate III
Advocate III

Hi @EugeneJvR 

 

Here is the below given steps which can help you to accomplish your requirements.

 

forgive me for not proper structure of sharepoint list and Flow. However, this completes the required process.

 

SharePoint list

This list contains columns as below 

Title: default list column

username: People picker

First Name: Single line of Text

Last Name: Single Line of Text 

 

SharePoint list configurations

listsetup.png

 

Flow Solution

  1. First i have used the Trigger named When an Item is Created in SharePoint list.
  2. Second Action i have used is the Get User Profile (V2)
  3. Then i have used the Update item action where we are updating the User Profile details.

 

Please find below given flow Screenshot of Microsoft Flow configuration.

  get user profile.png

 

Hope it will achive your requirements, if still you have an query or any questions feel free to post here.

 

If it works for you please accept this as a solution so other community members will also get benefit of this thread.

 

Thanks & Regards

Dev_Nikhil

View solution in original post

3 REPLIES 3
Dev_Nikhil
Advocate III
Advocate III

Hi @EugeneJvR 

 

Here is the below given steps which can help you to accomplish your requirements.

 

forgive me for not proper structure of sharepoint list and Flow. However, this completes the required process.

 

SharePoint list

This list contains columns as below 

Title: default list column

username: People picker

First Name: Single line of Text

Last Name: Single Line of Text 

 

SharePoint list configurations

listsetup.png

 

Flow Solution

  1. First i have used the Trigger named When an Item is Created in SharePoint list.
  2. Second Action i have used is the Get User Profile (V2)
  3. Then i have used the Update item action where we are updating the User Profile details.

 

Please find below given flow Screenshot of Microsoft Flow configuration.

  get user profile.png

 

Hope it will achive your requirements, if still you have an query or any questions feel free to post here.

 

If it works for you please accept this as a solution so other community members will also get benefit of this thread.

 

Thanks & Regards

Dev_Nikhil

Thank you @Dev_Nikhil,

 

This is exacly what was needed. I understand it better now

 

Follow-up question... I get a Failure on "Get User Profile" with Status code 403.

 

I am running this flow  with a service account. Can you tel me what permissions are required to do "Get User Profile"

 

Thanks again

Hi @EugeneJvR

 

i am also not sure about this so i created new Thread for this Question and i got the reply from the msft team.

 

I am providing the URL of the Thread please share it with your ADMIN.

https://powerusers.microsoft.com/t5/Using-Flows/Permission-level-for-Get-User-Information/m-p/264335...

 

Thanks and Regards,

Dev_Nikhil

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (975)