Hello All,

On this video supported weblog I’m going to inform about Exception dealing with in your scripts in Mannequin pushed Apps and notify the consumer in significant method.

Right here is the code pattern utilized in above video instance:

perform onLoad(executionContext)
{
strive
{
var formContext = executionContext.getFormContext();
formContext.getAttribute(“gendercode1”).setValue(0);
}
catch (exception)
{
var exceptionAlertString =
{
confirmButtonLabel: “Okay”,
textual content: “On Load error: ” + exception.message
};
var exceptionAlertOption =
{
peak: 120,
width: 260
};
Xrm.Navigation.openAlertDialog(exceptionAlertString, exceptionAlertOption);
}
}

Hope it helps and Energy 365ing as typical!

Any downside in Energy Platform or Dynamics 365 – finish consumer, Microsoft companion or a person?

Downside Space – Technical, Practical, Coaching, Improvement or consulting?

I’m right here to assist, get in contact right here: Click here

LEAVE A REPLY

Please enter your comment!
Please enter your name here