I have a JavaScript code which works fine in Classic D365 but not in UCI. On my form there is a business process flow where on the load event I have written the following JS code which retrieves the active stage of the business process flow using getActiveStage() method. However, in UCI it returns null as shown below. 

Can anyone please give any suggestions?

Kind Regards