Announcements
Hello everyone,
In powerapps I have a gallery that is linked to a sharepoint list and from powerapps I want to change the status of an item by passing through a toogle. So if I activate the toggle the status should change to inactive and if I deactivate it it changes to active. Does anyone have any ideas about feasibility?
Hi @242F_low,
Give the following code a try:
//OnCheck property Patch( LISTNAME, {ID: ThisItem.ID} {StatusColumn: {Value: "inactive"}} ) //OnUncheck Patch( LISTNAME, {ID: ThisItem.ID} {StatusColumn: {Value: "active"}} )
Change the name of the list and statuscolumns to the correct ones. Additionally, should the status column be a text column instead of a choice, use {StatusColumn: "active"} instead.
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
@LaurensM Thanks I will try it and back to you if it's done.
@LaurensM thank you for this code solution it's working properly
Patch(Habilitation;{ID: ThisItem.ID};{Statut: {Value: "inactif"}})
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 396 Super User 2026 Season 2
Mohsin Ali 323
WarrenBelz 193 Most Valuable Professional