cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic API Triggered Canvas

db-origin
Practitioner

I want to trigger a Canvas using an API but also have that Canvas fire a Webhook message at the end of processing.

I would like to pass in some information in the API trigger payload that would dynamically switch the Canvas between two webhook messages. Since I cant use an api_triggered_property in a webhook message URL, I need another way to dynamically set a callback URL for the inbound API call.

Is there any way to use an api_triggered_property in an API Triggered Canvas to make a decision within that Canvas?

Any workarounds that anyone can share?

Thanks
Darren

7 REPLIES 7

Hi @AllanHeo - Its not Darren T sorry - its Darren B 🙂 I've chatted to you on the old Slack groups previously

I did some more testing what what I was after and rather than fixing the result to two static URLs, I decided to pass in the URL via the API call as a callback URL parameter: canvas_entry_properties.${callback_url} 

However, I found that there is some restriction on what you can put in the Webhook URL field. It seems to always want a HTTP scheme as a minimum e.g.

https://{{canvas_entry_properties.${callback_url}}}  (Saves OK)

{{canvas_entry_properties.${callback_url}}} (Throws error on Save)

Cheers

Darren

Haha ahh, thanks for clarifying! 

And super helpful. Thanks for sharing! Best of luck with the cool use case!

AllanHeo
Strategist II