Forum Discussion
Sharepoint online list button "actionParams" : syntax for multiple flow id
- Aug 31, 2022
Leclercq_Loic You can create two flow buttons & show/hide them based on column values.
For Example:
{ "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "div", "children": [ { "elmType": "button", "txtContent": "Flow 1", "style": { "display": "=if([$Validation] == 'Refused', 'block', 'none')" }, "customRowAction": { "action": "executeFlow", "actionParams": "{\"id\":\"9b82dc01-891a-489c-b7bc-768cac9c2209\", \"headerText\":\"Flow A\",\"runFlowButtonText\":\"Run Flow A\"}" } }, { "elmType": "button", "txtContent": "Flow 2", "style": { "display": "=if([$Validation] == 'Refused', 'none', 'block')" }, "customRowAction": { "action": "executeFlow", "actionParams": "{\"id\":\"ca3ce1e0-8145-40ca-8074-5d76b9f9e8d9\", \"headerText\":\"It's Flow Time!\",\"runFlowButtonText\":\"Do it\"}" } } ] }Output:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Leclercq_Loic You cannot run multiple flows at a time using actionParams. You might be able to add condition to run either of flow based on column values.
Can you add the complete JSON code in your question & I will reply back with updated JSON for your requirements?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.