Forum Discussion
MjnMixael
Sep 11, 2019Copper Contributor
Sharepoint List Button
I have a custom list for a ticketing system. Using custom formatting, I've got a button that displays the EditItem form and the ViewItem form. My next challenge is to create button that can set a field for the item to the currently logged in user. (Accept ticket). Is this something I need to do with Flow? How do I pass the current item and logged in user to the flow?
Hi MjnMixael,
You can use Flow to perform an update item action in the list. Use the SharePoint "For a selected item" trigger. Add a "button" using JSON column formatting to start the Flow - https://github.com/SharePoint/sp-dev-list-formatting/tree/master/column-samples/generic-start-flow.
I hope this helps.
Norm
3 Replies
Sort By
Hi MjnMixael,
You can use Flow to perform an update item action in the list. Use the SharePoint "For a selected item" trigger. Add a "button" using JSON column formatting to start the Flow - https://github.com/SharePoint/sp-dev-list-formatting/tree/master/column-samples/generic-start-flow.
I hope this helps.
Norm
- MjnMixaelCopper Contributor
Oh I see. So that just leaves me with how to get the ID of the user who clicked the button or did I miss something?
Aha. It's included in the For Selected Item Trigger. Excellent.
Hi MjnMixael,
That will be provided by the SharePoint "For a selected item" trigger. If you need help let me know.
Norm