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

View solution in original post

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,686)