Enterprise Requirement: Present notification in mannequin pushed kind on save of desk solely when explicit subject/attribute has modified.
Resolution: In Dynamics 365 , we will obtain this requirement utilizing following script:
// perform to indicate notitification on save
perform onSave(executionContext) {
var formContext = executionContext.getFormContext();
var subject = formContext.getAttribute(“fieldname”);
if (subject.getValue() == VALUETOMATCH && subject.getIsDirty())
{
var message = “Subject identify has modified”;
var messageString =
{
confirmButtonLabel: “Okay”,
textual content: message
};
var messageAlertOption =
{
top: 120,
width: 260
};
Xrm.Navigation.openAlertDialog(messageString, messageAlertOption);
}
}
Register this on save and present alerts based mostly on subject modified.
Hope it helps and Energy 365ing as normal!
Different methods to be taught with me:
Any downside in Energy Platform or Dynamics 365 – finish consumer, Microsoft accomplice or a person?
Drawback Space – Technical, Practical, Coaching, Growth or consulting?
Me and my group are right here to assist, get in contact right here: Click here