Sep 11 2019 09:12 AM
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?
Sep 11 2019 11:30 AM
SolutionHi @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
Sep 11 2019 11:46 AM - edited Sep 11 2019 11:50 AM
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.
Sep 11 2019 11:51 AM
Hi @MjnMixael,
That will be provided by the SharePoint "For a selected item" trigger. If you need help let me know.
Norm
Sep 11 2019 11:30 AM
SolutionHi @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