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

Announcements

News and Announcements icon
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 Microsoft Employee

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,525 Super User 2026 Season 1 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
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 227

#2
David_MA Profile Picture

David_MA 204 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 177

Last 30 days Overall leaderboard