I am trying to show alert message after uploading file. We just upgraded the CRM version to 9.1. So using Xrm.Navigation.openAlertDialog to show success message after uploading file. But unable to see text from alert box. Below is the code for the same:
function showAlertBox(){
var alertStrings = { confirmButtonLabel: "Yes", text: "This is an alert.", title: "Sample title" };
var alertOptions = { height: 300, width: 500 };
Xrm.Navigation.openAlertDialog(alertStrings, alertOptions).then(
function (success) {
console.log("Alert dialog closed");
},
function (error) {
console.log(error.message);
}
);
}