How to integrate Microsoft 365 Users with the Power Apps Modern Control People Picker How to integrate Microsoft 365 Users with the Power Apps Modern Control People Picker
Asutosh Patel

Asutosh Patel

August 13, 2024

All Post
How to integrate Microsoft 365 Users with the Power Apps Modern Control People Picker 31.07.24
Share:

The out-of-the-box people picker in Modern Power Apps Form currently doesn’t work properly with Power Apps modern controls. Therefore, the workaround is to use Microsoft 365 users with the Modern Control form.

First need to create a SharePoint list with the following types of columns:

  • Name: Single line of text
  • Department: Choice
  • Manager: People picker

 

IMG 01

 

Step 1: Go to Power Apps and create an app. In the app, add a modern form to the screen. Ensure modern controls are enabled from the Power Apps settings. To enable them, navigate to Settings, then General, and enable ‘Modern Controls and Themes’.

 

IMG 02

 

Step 2: After enabling it, click on ‘Insert’ and add a modern view form.

 

IMG 03

 

Step 3: After adding the form, select the data source. Choose the site, and then select the list. Once the list is selected, the columns will appear in the form.

 

IMG 04

 

Step 4: In the Manager column, first select the data card where you want to display the information. Then, click on the fields edit button.

 

IMG 05

 

Step 5: Click on ‘Add Field’ and select which property you need to show in the dropdown.

 

IMG 06

 

Step 6: Now, run the app. In the column, you will see a limited list of users that you can select, not all from the tenant users.

 

IMG 07

 

Step 7: To get all the users from the tenant, you need to add the Office 365 User data source in Power Apps.

 

IMG 08

 

Step 8: After that, go to the data card, click on the item property, and add

Office365Users.SearchUser({searchTerm:””,top:999})

 

IMG 09

 

Step 9: After adding that, you should now see all users from the tenant.

 

IMG 010

 

Step 10: To get the people picker value in the list, add this code to the data card’s Update property.

{

‘@odata.type’: “#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser”,

Claims: “i:0#.f|membership|”&DataCardValue4.Selected.Mail,

Department: “”,

DisplayName: DataCardValue4.Selected.DisplayName,

Email: DataCardValue4.Selected.Mail,

JobTitle: “”,

Picture: “”

}

 

IMG 011

 

Step 11: After completing all the steps, run the app and submit the data.

 

IMG 011 GIF

 

Conclusion:

Integrating all Microsoft 365 users with the modern people picker in Power Apps simplifies how data is managed in SharePoint lists. Users can easily select and submit data by setting up modern forms, adjusting settings, and adding the Office 365 User data source, ensuring smooth operations across the platform.

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.