Announcements
Is there any way to make the below work?I have Gallery in which I have an Icon. In the Icon OnSelect I've placed the formula below.The intent of the formula:If the content of the SPList ContactStatus column for that item is "Pending" clicking the Icon will change "Pending" to "Sent to Buyer". Update('Test List'.ContactStatus, If(ThisItem.ContactStatus="Pending",true,"Sent to Buyer")
@Phineas
Please consider changing your Formula to the following:
Patch('Test List', {ID: ThisItem.ID, ContactStatus: If(ThisItem.ContactStatus, "Sent to Buyer", "Pending") } )
The above will "flip" the status back and forth. If you only want it to go one direction, then simply remove the If part completely and change it to: "Sent to Buyer"
The above assumes that your ContactStatus is a text column in your datasource.
I hope this is helpful for you.
PA doesn't like it. Tried both the following. Got errors.
The function 'Patch' has some invalid arguments.The type of this argument 'ContactStatus' does not match the expected type 'Record'. Found type 'Text'.
Patch('Test List',{ID: ThisItem.ID,ContactStatus: "Sent to Buyer"})***********************************************Patch('Test List',{ID: ThisItem.ID,ContactStatus: ThisItem.ContactStatus.Value,"Sent to Buyer"})
I figured it out.Variable at OnStart: Set(varChangeStatus, "Sent to Buyer");Icon OnSelect: UpdateIf('Test List', ID = ThisItem.ID, {ContactStatus: varChangeStatus});
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 220 Super User 2026 Season 2
WarrenBelz 189 Most Valuable Professional
Mohsin Ali 139