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 / Instant flow to run fr...
Power Automate
Unanswered

Instant flow to run from sharepoint online button webpart

(2) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a instant flow that i want to be able to run from a button on my SharePoint site.

 

I have the button but I am not able to figure out how to get the link address to the flow to be able to run it.

 

Any insight into this would be very much appreciated.

Categories:
I have the same question (0)
  • rsaikrishna Profile Picture
    3,703 on at

    @Anonymous 

     

    Please check Laura's blog:

    https://wonderlaura.com/2018/07/18/button-in-sharepoint-list-to-trigger-microsoft-flow/

     

    I hope this will help you.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    @Anonymous you need to create the flow first using the "For a selected item" trigger and grab the ID of the flow. In this example we're creating the Publish to Teams button:

    0-SP-List.png

     

    1-ForSelectedFile.png

     

    2-flowID.png

    The flow ID then goes into the flow as shown below:

    4-JSON.png

    The JSON shown above is as follows. You might not need the visibility setting which I've used here to hide the button once the flow has run.

     

    {
     "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
     "elmType": "button",
     "txtContent": "Publish to Teams",
     "customRowAction": {
     "action": "executeFlow",
     "actionParams": "{\"id\": \"021ec4e0-8f85-46b3-a557-a4456960a4eb\"}"
     },
     "style": {
     "background-color": "#468259",
     "color": "white",
     "visibility": "=if(([$PublishedToTeams] == 'Yes'),'hidden','visible')"
     }
    }

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the responses but those are for creating a button in a list.

     

    I want a button on the webpart

     

    this is the button on the webpartthis is the button on the webpartthis is the button edit linkthis is the button edit link

  • RobElliott Profile Picture
    10,426 Super User 2026 Season 1 on at

    @Anonymous that's not possible other than by creating a Power Apps button. There is a request for this in the Ideas area at https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Embedded-Flow-Buttons-for-SharePoint/idi-p/97068#comments

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok thanks i will keep on the lookout then and also lookup how to do powerapps

  • Jaco_Campher Profile Picture
    99 on at

    Try putting this in the button link:

     

    https://emea.flow.microsoft.com/manage/environments/{EnvironmentName}/flows/{flowID}/run

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Brilliant!

  • mboonie Profile Picture
    164 on at

    Great idea. Is there a way to run it without going to and finishing up on the Power Automate landing page?

  • Pedroza Profile Picture
    3 on at

    Thank you.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard