Multi Person People Picker control in SharePoint list forms customized via Power Apps behaviour

 

Today i ran into a weird issue. I had a People picker control on my SharePoint list form. Just to give you a background of my situation. i am customizing a SharePoint list forms using Power Apps. Yes, it totally sucks, but client is the king and specially when you have government client.

Problem: Client wanted to have a column, lets say "Follow Project" which will be a people picker column. This column will be used for following a particular project, on which they may not be working on but are interested in. Also not to forget the higher executive, who randomly wants to check a project.

Solution: i created a people picker column in SharePoint and added it to my Power Apps customized SharePoint form. i quickly tested the functionality and i was able to save, view and edit the person value.

But then i realized that let me make it more flexible so as instead of users groups can also be added. Also, why not enable multiple person. All this looked out of the box, so i went to my SharePoint list. Clicked on the respective column and made both these changes.


Now when i tried to again test the solution, i was able to add multiple values. But guess what i wasn't able to save it and of course not retrieve it. So i decided to check the power app form. And to my surprise the field had started giving me error. The default property was no longer taking in the selected items instead of selected.


So i started looking for new solutions, old fixes, MS released notes. But no luck. finally i ended up in a discussion where someone suggested that this happens as People picker control is tightly coupled to forms and even after the fix released my MS if you change the column values after you have already created the column you Datacard will get corrupt and start giving errors. Easiest fix is to delete the column create a new people picker column, along with all the specific settings enabled like multiple values and people and groups enabled. Add the respective field to the form. Don't forget to refresh your data connection. And voila every thing will start working. Just documenting this behavior so as it saves someones else time.


Comments

Popular posts from this blog

Creating Nested Galleries in Power Apps. (Parent-Child Relationship)

How to reset a datepicker control in PowerApps?

Reset () function failing to work on Edit form for Combo boxes in Power App.