Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Trigger a flow from within code (that still works after promoting solution)

We'd like to trigger a flow from within a model driven app by using code (JavaScript WebResource).


We have used HTTP POST as a trigger for our flow and this works by calling the HTTP POST URL from within our code. But, every time we promote our solution (e.g. from DEV to TEST), our code is broken as the HTTP POST URL of our flow has changed. Is there any other way we can trigger a flow from within code that won't break when promoting solutions? Previously, to manually trigger a Workflow, we could use the WorkflowId that remained consistent between environments.