
Announcements
Hi,
I would like to change a sharepoint list column, status of incident(choice column of resolved and unresolved) with a click of a button.
For example, the selected item on the gallery, the user with a click of a button, would update the status of the incident to unresolved. Doing so, will update the sharepoint list
Thank you in advance!
A couple of ways you can do this, but this is one. Add a button/icon to your gallery with this OnSelect code
// for 'resolved'
// Note: the text in Value below must exactly match your Choice options in SharePoint
UpdateIf(
yourSPListName,
ID = ThisItem.ID,
{
yourChoiceColumnName:
{
Value: "resolved"
}
}
)
You could add another button/icon for unresolved.