Forum Discussion
Leclercq_Loic
Aug 31, 2022Copper Contributor
Sharepoint online list button "actionParams" : syntax for multiple flow id
Hello, On Sharepoint list, i use a button to launch a powerautomate flow. I want to launch a different flow, function from status column value. I dont know how to write the actionParams condition ...
- 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.
ganeshsanap
Aug 31, 2022MVP
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_LoicAug 31, 2022Copper ContributorExcellent, thank you very much !