Forum Discussion

Pavel48n0sh's avatar
Pavel48n0sh
Brass Contributor
Nov 01, 2022

run flow using JSON doesn't work in Home Page

I'm using JSON column formatting to run flow using button. In List Page, everything works well, the flow is launched by pressing the button, but if I open this List in Home Page, the button does not work. How can this be fixed?

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "button",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\": \"j0105ab2-ea8a-478d-b7fa-89180dca1c7b\"}"
  },
  "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!"
    }
  ]
}

2 Replies

Resources