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 / Patch function Error
Power Apps
Unanswered

Patch function Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I am trying to patch a value from a combo box to a SharePoint list of a data type Person. But in my combo box, there are two sets of items one is a record and the other is a table. which works based on condition. So now I need to write a patch statement to hit the combo box value irrespective of the data set to a column of person field in Sharepoint. Please do help me out with this. 

 

This is the patch statement I tried 

Patch(

    'DRU Response Management',
    {
        'LOB Approver(s)':Table(
            {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
                Claims: cmb_LOB.Selected.Mail,
                DisplayName: cmb_LOB.Selected.Mail,
                Email: cmb_LOB.Selected.Mail,
                Department: "",
                Picture: "",
                JobTitle: ""
            })
    }

);

image (8).png
Categories:
I have the same question (0)
  • theapurva Profile Picture
    970 Super User 2024 Season 1 on at

    Hello @Anonymous,

    You have to put this formula for IsSearchable property of your combobox:

    If(
    Approval_edit=false,false, true)
    
    Also,
    you can directly use only Approval_edit as value because it is boolean only like below screenshot.

    theapurva_0-1656961700957.png


    Then, You have to use the condition as below in your items property(your screenshot) as below:

    If(
    Approval_edit=false,
    Office365users.SearchUser({
    searchTerm:(Lookup(VarSharepointResponselist,'Response ID'=Gallery1.selected.'Response ID',
    'Gatekeeper Approver(s)'.Email))),
    Office365users.SearchUser({
    searchTerm:cmb_GateKeeper.SearchText,
    Top:20
    })
    )

    your Patch function(No need to put Table into it):

    Patch(
    
     'DRU Response Management',
     {
     'LOB Approver(s)':
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: cmb_LOB.Selected.Mail,
     DisplayName: cmb_LOB.Selected.Mail,
     Email: cmb_LOB.Selected.Mail,
     Department: "",
     Picture: "",
     JobTitle: ""
     }
     }
    );

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard