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 / How to Patch user info...
Power Apps
Answered

How to Patch user information office 365 user information

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

RajSaha__0-1610308787701.png

Patch(
'Work Requests',
Defaults('Work Requests'),
{Title:Value(TextInput2.Text),
Client:TextInput2_1.Text,
Staff:ComboBox1.Selected.Mail})

RajSaha__1-1610308984807.png

not able to submit the data

How to Patch all the information 
I need to submit all the information but only staff and senior information not able submit ,Staff and senior information taking from 0ffice 365

RajSaha__2-1610309169969.png

 




Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    Are you trying to PATCH a SharePoint Person column?  Here's an example of how to do it:
    https://matthewdevaney.com/power-apps-patch-function-examples-for-every-sharepoint-column-type/patch-a-sharepoint-person-column-in-power-apps/

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@RajSaha_,

    Based on the issue that you mentioned, do you want to patch user information from the Office365Users to SP list?

    Could you please tell me

    1. how you set the Items property of these Combo Box?
    2. what is the column type of the Staff and Senior, are they all Person column?

    I want to tell you that if you have connected Office365Users to your App and want to patch it back to the Person/Group column within your SP list, you should obey the following format:

    {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|qi@wiXXXX.onmicrosoft.com",
     Department:"",
     DisplayName:"Qi Qiao",
     Email:"qi@wiXXXX.onmicrosoft.com",
     JobTitle:"",
     Picture:""
     }

    In my scenario, I have a Person column named "Staff" and the Items property of the Combo Box is set to:

    Choices([@'Work Requests'].Staff)

    In your scenario, I assume that you have the Person/Group column within your SP list, and please modify the formula as below:

    Patch(
     'Work Requests',
     Defaults('Work Requests'),
     {
     Staff: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     DisplayName: DataCardValue6.Selected.DisplayName,
     Claims: DataCardValue6.Selected.Claims,
     Department: "",
     Email: DataCardValue6.Selected.Email,
     JobTitle: DataCardValue6.Selected.JobTitle,
     Picture: ""
     }
     }
    )

    Please check to see if this could help you.

    Regards,

    Qi

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard