Forum Discussion

Tamras1972's avatar
Tamras1972
Iron Contributor
Feb 23, 2023
Solved

Flow button to run flow

I'm following below guide to add a flow button in SharePoint list. In line 6, I changed the flow ID but clicking the button doesn't do anything. What am I doing wrong?

https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-advanced#create-a-button-to-launch-a-flow

 

 

 

{
  "$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": "Send to Manager"
    }
  ]
}

 


Flow ID taken from the URL
https://x...............xx/flows/guid-I-copied/details

 

  • Figured it out. The flow is solution-aware. I had to get the flow identifier instead.

3 Replies

  • RobElliott's avatar
    RobElliott
    Silver Contributor

    Tamras1972 have you made sure that the trigger in your flow is the SharePoint "For a selected item"?

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

      • Tamras1972's avatar
        Tamras1972
        Iron Contributor

        Figured it out. The flow is solution-aware. I had to get the flow identifier instead.

Resources