I have added a button to a row in a list that can trigger a workflow. I would like it to set a field before running the flow. Do actions in JSON run synchronously? Can you run multiple actions?
This was my attempt but does not work.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "button",
"txtContent": "Publish",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"6e4dc9d8-30ed-4123-ae8a-4b9ce24c2209\",\"headerText\":\"Copy To Enterprise\",\"runFlowButtonText\":\"Publish\"}",
"action": "setValue",
"actionInput": {
"PublishStatus": "Published"
}
},
"style": {
"background-color": "#008082",
"color": "white",
"border-radius": "0 15px"
}
}