cancel
Showing results for 
Search instead for 
Did you mean: 

Start Flow via Flow button through column formatting even if it is in non default environment

When I create a flow and want it to start from a list using column formatting, I can use this snippet to set it up:

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
  "elmType": "button",
  "txtContent": "It's Flow Time!",
  "customRowAction": {
    "action": "executeFlow",
    "actionParams": "{\"id\":\"f7ecec0b-15c5-419f-8211-302a5d4e94f1\", \"headerText\":\"It's Flow Time!\",\"runFlowButtonText\":\"Do it\"}"
  }
}

 

 

 

However the flow will only start if it is residing in the default environment. Microsoft tought me to not host critical stuff in the default environment so we created a new one. To avoid fragmentation of solutions over multiple environments it should be possible to add a parameter for the environment of the flow and make it able to start via column formatting.

Status: New