cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

How to Patch user information office 365 user information

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

 




1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

View solution in original post

2 REPLIES 2
Super User III
Super User III

@RajSaha_ 
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...

 

---
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."
 

Community Support
Community Support

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

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (30,877)