Hi,
I'm trying to replace the Xrm.Page collection in a script that fires on loading cases, in order to switch to the new Unified Interface. As documentation say, I enabled the flag to pass the execution context as the first parameter, and in the function I added the executionContext in input. I still can't retrieve the value of any of the case fields, the error I receive is "getAttribute is not a function"
The function code is the follow:
function form_onload(executionContext) {
var formContext = executionContext.getFormContext();
alert(formContext.getAttribute("incidentid").getValue());
}
I tried with this way too:
executionContext.getFormContext.ui.controls.get
but it still give me an error:Cannot read property 'controls' of undefined
Can someone help me please?
Thanks
Passaia