Forum Discussion

abenet beyene's avatar
abenet beyene
Copper Contributor
Aug 03, 2024

Run flow from Sharepoint Page

Hello,

 

I have a flow that runs for files selected in the Document Library using JSON formatting, but I am trying to run the same flow from a SharePoint page, with the Document Library added as a web part

 

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"edf627d9-20f4-45ba-8bc9-4494bf2ff1be\"}"
},
"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": "It's Flow Time!"
}
]
}

  • Rob_Elliott's avatar
    Rob_Elliott
    Bronze Contributor

    abenet beyene a flow cannot be triggered from a list/library web part, only via the JSON button on the list or library itself.

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User.
    Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)

Resources