web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to save/write Peop...
Power Apps
Answered

How to save/write People Picker info to Dataverse table

(0) ShareShare
ReportReport
Posted on by 8

Hello,

 

I'm trying to create a Dataverse database & accompanying Power App to manage basic course information. One of the fields (columns) in the database (table) is 'Course coordinator':

koen_EUN_0-1630333757852.png

For the 'Data type' I had selected the 'Customer' value, because (while our course coordinator is a colleague and not a 'customer') it was the only 'person' data type in the list.

 

In my app I use the following for the Items. I can search and select users without problem

 

 

Office365Users.SearchUserV2({searchTerm:DataCardValue4.SearchText,top:5}).value

 

 

koen_EUN_5-1630335610105.png

However, when hitting the Save button, I get an error saying that a required field is not filled.

koen_EUN_4-1630335535276.png

The field is required in the database and in the app, but somehow the value does not seem to bet stored.

The OnSelect of the Save button is simple:

 

 

SubmitForm(FormNewCourse)

 

 

Would I need to do anything extra to take and 'store' the value (person) in this database field? Or is the 'Customer' field/data type not the right one for this purpose?

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @koen_EUN ,

     

    I would suggest leveraging User table if this is an internal user of the organization and utilize Contact if this is an external user to the organization.  The Customer type is a field that has the ability to be an Account or Contact and is used in areas like Opportunities, Quotes, and other in Dynamics 365 where you could be selling to an individual user (Contact) or a business (Account).  

     

    Keeping as a Customer table will over-complicate your system I expect and moving to the User or Contact will simplify the ability to persist the information in the form.

     

    Hope this helps.  Please accept if answers your question or Like if helps in any way.


    Thanks,


    Drew

  • koen_EUN Profile Picture
    8 on at

    Hi @dpoggemann

    Thanks for your reply. When you say 'leveraging the User table', are you talking about the Power App or about the Dataverse table?

    In the Power App I'm already using Office365Users as a data source. In the Dataverse table there's only one 'people' option when adding a column, which is Customer (in a spoiler container because of image height):

    Spoiler (Highlight to read)

    koen_EUN_0-1630396627313.png

    Would you have any reference to documentation to this User or Contact field? I'm wondering if it might not be available with our subscription, is that possible?

     

    Many thanks

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @koen_EUN ,

     

    I am talking about in the Dataverse. Choose "Lookup" from your drop down and this will allow you to select other tables in the Dataverse for the column.  You will see Users as a choice in the selection, same with Contacts.  

     

    Hopefully this helps.  Please accept if answers your question or Like if helps in any way.

     

    Thanks,


    Drew

  • koen_EUN Profile Picture
    8 on at

    Hello @dpoggemann,

    Thanks so much. That (replacing the Database field with Lookup > User) seems to do the trick. When adding the field in the Power App, the people picker now shows up automatically, and I can search & select colleagues.

     

    Just two more questions, if I may:

    Would you have an idea why for this field in the PowerApp the 'Image' field might be greyed out?

    koen_EUN_0-1630409412849.png

    Secondly, I used the following formula to look up the current user and select them for the Default value.

    Office365Users.SearchUserV2({searchTerm:User().Email}).value

    Could you (point me to information that will) tell me how to do this with the Dataverse User Lookup being the data source?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard