Skip to content

Instantly share code, notes, and snippets.

@pawelgradecki
Created October 29, 2017 21:43
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/80247110c74c995a52ff617629e63f48 to your computer and use it in GitHub Desktop.
Save pawelgradecki/80247110c74c995a52ff617629e63f48 to your computer and use it in GitHub Desktop.
function showAlertDialog() {
var alertStrings = {
confirmButtonLabel: "This is text shown on the confirmation button",
text: "This is text shown on the dialog"
};
var alertOptions = {
height: 200,
width: 400
};
Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
result => {
console.log("Success! The dialog was shown");
},
error => {
concole.log(error.message);
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment