I have an instant flow programmed in a column as a button (with JSON) that when ran it will populate a Word Template.
I have choice column named Template with 11 different choices that should trigger to 11 different Word Templates.
Depending on the Template chosen, I'd like the button run the correct flow.
Choose Template1, then click button, run flow Template1.
Choose Template2, then click button, run flow Template2, etc.
Is this possible?


Within the Format Column of the instant flow button, I figured I need a nested if statement in the JSON at "actionParams" but just can't get it to work. Maybe I'm going at it all wrong?

I tried to just test two different flow ID's in the if statement as a test but get the error:
Unexpected token '=', "=if([$Temp"... is not valid JSON
"actionParams": "=if([$Template] == 'Template1’, {\"id\": \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx001\"}, {\"id\": \" xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx002\"}"