@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:



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

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.