Flow is used to copy information from a Forms response into a Sharepoint List
I have a button int the Sharepoint List, 'Generate Documents' which triggers a Flow. How can I pass the current list item information into Flow?
The button is a column with the JSON format edited:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "button", "customRowAction": { "action": "executeFlow", "actionParams": "{\"id\": \"id}" }, "attributes": { "class": "ms-fontColor-themePrimary ms-fontColor-themeDarker--hover" }, "style": { "border": "none", "background-color": "transparent", "cursor": "pointer" }, "children": [ { "elmType": "span", "attributes": { "iconName": "Flow" }, "style": { "padding-right": "6px" } }, { "elmType": "span", "txtContent": "Generate Documents" } ] }
Solved! Go to Solution.
@Anonymous create your flow first using the For a selected item SharePoint trigger. Copy the ID of the flow:
Then use that ID in your JSON column format:
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
@Anonymous create your flow first using the For a selected item SharePoint trigger. Copy the ID of the flow:
Then use that ID in your JSON column format:
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
This is perfect, thanks @RobElliott . I was just confused as to how Flow is able to retrieve the item from the Flow trigger ID, but I can now accept that it is magic and it works great.