Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Created October 29, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pawelgradecki/839206cde8fd0873e919675c08ae7498 to your computer and use it in GitHub Desktop.
Save pawelgradecki/839206cde8fd0873e919675c08ae7498 to your computer and use it in GitHub Desktop.
function showErrorDialog() {
var errorOptions = {
details: "This is simply the message that can be downloaded by clickick 'Download log file'",
errorCode: 666, //this is error code if you want to show some specific one. If you specify invalid code or none, the default error code wouldbe displayed
message: "Message show in the dialog"
};
Xrm.Navigation.openErrorDialog(errorOptions).then(
success => {
console.log("Dialog was closed successfully");
},
error => {
console.log(error);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment