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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Amend record on Sharep...
Power Apps
Unanswered

Amend record on Sharepoint list

(0) ShareShare
ReportReport
Posted on by 29

Hi all,

 

I have a Sharepoint list "Void Orders". I need to amend a specific record from the column "OrderCreatedFlag". Everytime a click the button save, it should compare the selected item on the gallery and set the flag to "Yes". I am using the following script but it is not working.

 

Patch(Search('Void Orders', Gallery1.Selected.'Site Name', "{'Site Name'}"), Defaults('Void Orders'), {OrderCreatedFlag: "Yes"});

 

(It is showing a message that the Specific column 'Site Name' doesn't exists, but it does, and if I change from 'Site Name' to 'Name', powerapps accept it but it doesn't set the record to yes.

 

Could anyone help me? Is there another way of doing it?

 

Thank you

 

Regards

 

Marcus 

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @marcusramos ,

     

    Is OrderCreatedFlag a yes or no column? If so, Patch formula should be something like:

    Patch('Void Orders', Defaults('Void Orders'), {OrderCreatedFlag: {'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
       Id:1,
      Value:"Yes"}
    });

     

    Regards,

    Mona

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard