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 Update Item give...
Power Apps
Answered

Patch Update Item gives error

(0) ShareShare
ReportReport
Posted on by 92

Hi,

 

I used the Patch syntax (below) for creating new item (default) and it works perfectly. Now I want to I have to modify/update items in SharePoint list but it gives me error. The error is in Item(Lookup).  Any suggestion how to work this around? Thank you!

 

 

Patch(
'Inspection Request Detail List', 
LookUp('Inspection Request Detail List',ID = DataTable2.Selected.ID),
{

Title: DataCardValue29.Text,
FurtherInfo: DataCardValue32.Text,
Documentation_Handed_out: DataCardValue45.Text,
DocumentationShown: DataCardValue46.Text,
ChildRequest: DataCardValue33.SelectedItems,
Inspector: DataCardValue42.Selected,
Dep: Label3.Text,
Presented: DataCardValue47.SelectedDate,
Tour: DataCardValue36.Selected,
Status: DataCardValue37.Selected,
MasterID:DataCardValue72.Selected,
'MasterID:Title':DataCardValue71.Selected,
QAPresenter: ForAll(SearchPresenter.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: Mail,
Department: "",
DisplayName: Mail,
Email: Mail, 
JobTitle: ".",
Picture: "."
}
)//ForAll
}
);//Patch
Navigate(Request)



Any help is appreciated!

 

 

Regards,

May

Categories:
I have the same question (0)
  • ganeshsanap Profile Picture
    1,555 on at

    @mayarnaldo What is the error message you are getting? 

  • mayarnaldo Profile Picture
    92 on at

    Hi,

     

    Thank you for the reply.

     

    Pacth error.jpg

     

    It gives error when I added the LookUp but when I used the Default, everything is ok. So I guess that I am doing something wrong in LookUP syntax.

     

    /M

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

    Hi @mayarnaldo ,

    Try this first

    Patch(
     'Inspection Request Detail List', 
     {ID:DataTable2.Selected.ID},
     {
     Title: DataCardValue29.Text,
     FurtherInfo: DataCardValue32.Text,
     Documentation_Handed_out: DataCardValue45.Text,
     DocumentationShown: DataCardValue46.Text,
     ChildRequest: DataCardValue33.SelectedItems,
     Inspector: DataCardValue42.Selected,
     Dep: Label3.Text,
     Presented: DataCardValue47.SelectedDate,
     Tour: DataCardValue36.Selected,
     Status: DataCardValue37.Selected,
     MasterID:DataCardValue72.Selected,
     'MasterID:Title':DataCardValue71.Selected,
     QAPresenter: 
    	 ForAll(
    	 SearchPresenter.SelectedItems,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: Mail,
     Department: "",
     DisplayName: Mail,
     Email: Mail, 
     JobTitle: ".",
     Picture: "."
     }
     )
     }
    );
    Navigate(Request)

    If you still get an error, remove the QAPresenter for the moment - you are writing a table to it (what type of field is it?

     

    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.

     

  • mayarnaldo Profile Picture
    92 on at

    It works perfectly! Thank you! 🙂

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard