I'm migrating from CRM 2015 to Dynamics 365 and there is a web resource that has code breaking which is:
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.