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 a user to ...
Power Apps
Unanswered

How to save a user to a sharepoint list from PowerApps?

(0) ShareShare
ReportReport
Posted on by 6

I have a sharepoint sheet, in which one of the columns is a person.
I have created a new application in which I add a new line.
In the application, I created a form that I connected to the list.
I added to DefaultSelectItem I am using

{
'@ odata.type': "# Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
DisplayName: User (). FullName,
Claims: "i: 0 # .f | membership |" & Lower (User (). Email),
Department: "",
Email: User (). Email
}


In Items, I added: 

Office365Users.SearchUser ({searchTerm: DataCardValue3.SearchText}). DisplayName

and allowed field search.

It turned out great. By default, there is the mail of the person who opened the application, it is possible to search and edit.
That's just not saved 😃
After clicking the button with "SubmitForm (Form4);" the string is created, but the field named is empty.

How to find out what exactly is sent from the field and how to make it save the user to the list?

Categories:
I have the same question (0)
  • UK141RUS Profile Picture
    6 on at

    Oh yes. Important note.
    If you leave my address (which is by default), then it will be saved to the list, but if you change it to something else, then it will not be saved.

  • Verified answer
    v-albai-msft Profile Picture
    on at

    Hi @UK141RUS ,

    Do you mean you cannot save the value of the custom person control into your list?

    Is DataCardValue3 the name of your Person combo box inside the form?

    Seems that you have set the DefaultSelectItem property and Items property for this person combo box.

     

    If my understand is correct, you can try this solution.

    1. Set the items property of the Items property to(without .DisplayName, so that you can use DataCardValue3.Selected.Mail in next step):

    Office365Users.SearchUser ({searchTerm: DataCardValue14.SearchText})

    v-albai-msft_0-1620021402232.png

     

    2. Set the Update property of the this Person DataCard to following:

    {
     Claims: "i:0#.f|membership|" & Lower(DataCardValue3.Selected.Mail),
     DisplayName: DataCardValue3.Selected.DisplayName,
     Email: DataCardValue3.Selected.Mail,
     Department: ""
    }

    v-albai-msft_1-1620021402238.png

     

    Besides, for your second question, if you want to save to your list only when address= defaultAddressText, you can try formula like below for your submit button:

    If(addresscontrolname.Text="defaultAddressText",SubmitForm (Form4))

    This time, only when address is a default address value, Submitform action can work.

    Best regards,

    Allen

  • UK141RUS Profile Picture
    6 on at

    Del

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard