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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Person or group column...
Power Apps
Answered

Person or group column not getting saved - SubmitForm

(0) ShareShare
ReportReport
Posted on by 603

I have a person or group column in SharePoint which is used in Powerapps. The Items property of this column is set to Choices([@'Data Source'].Appuser).

 

I amended the Items property of the above column to only show Finance users


Filter( Office365Users.SearchUser({searchTerm: DataCardValue17.SearchText,top:500}),
Department = "Finance and Payroll"
)

 

This works fine which only shows finance users, however when i save particular record using SubmitForm(), the above field doesn't get saved into the datasource.

 

If i revert back the Items property of the datasource to Choices([@'Data Source'].Appuser), above field gets saved successfully.

 

May I know where I am going wrong?

Categories:
  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Iantaylor2050 ,

    You did not include the Update of the data card, but if you are going to that Items structure, you need to rename the Mail field to Email to match the Person column structure, so the Update would be

    RenameColumns(
     YourComboBox.Selected,
     "Mail",
     "Email"
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Iantaylor2050 Profile Picture
    603 on at

    Hi @WarrenBelz 

     

    I tried the above code in Update datacard. Still the selected user doesnt get saved into the sharepoint

  • WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    Hi @Iantaylor2050 ,

    What type of field are you writing back to ?

  • Iantaylor2050 Profile Picture
    603 on at

    Person or group column

  • Verified answer
    WarrenBelz Profile Picture
    156,921 Most Valuable Professional on at

    @Iantaylor2050 ,

    That was what I assumed (just checking the unobvious). Actually makes not a lot of sense presently as that should work, however going the "long" way

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

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard