I have a form in which I pass the execution context as the first parameter to the web resource:
I'm migrating from CRM 2015 to Dynamics 365 and there is a line of code in the web resource that breaks:
var stageID = Xrm.Page.data.process.getActiveStage().getId();
I'm trying something like this to update the code, but the following still doesn't work:
var formContext = executionObj.getFormContext();
var stageObject = formContext.data.process.getActiveStage();
The stage object is always null, so of course I can't try to get its ID.
Note: Other deprecated JS works.