Created
October 29, 2017 21:49
-
-
Save pawelgradecki/839206cde8fd0873e919675c08ae7498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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