web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow based on Button i...
Power Automate
Answered

Flow based on Button in Sharepoint List

(0) ShareShare
ReportReport
Posted on by

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" } ] }

Categories:
I have the same question (0)
  • Verified answer
    RobElliott Profile Picture
    10,327 Super User 2025 Season 2 on at

    @Anonymous create your flow first using the For a selected item SharePoint trigger. Copy the ID of the flow:
    1-forSelectedItem-ID.png

     Then use that ID in your JSON column format:

    0-formatColumn.pngRob
    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.

  • Community Power Platform Member Profile Picture
    on at

    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. 

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard