Is there any way of showing an URL in form Notification?
Or even as an alert dialog on opening the record?
The user should be able to click on that link and navigate to the respective page. I don't want to give that in URL field.
Thanks.
Is there any way of showing an URL in form Notification?
Or even as an alert dialog on opening the record?
The user should be able to click on that link and navigate to the respective page. I don't want to give that in URL field.
Thanks.
Yay!!! Awesome.. It's working as expected. Thank you so much Marco
I assume you only need something "clickable", if so this should do trick:
// define notification object
var urlAction =
{
actionLabel: "https://www.google.it",
eventHandler: function () {
Xrm.Navigation.openUrl("https://www.google.it");
}}
var notification =
{
type: 2,
level: 4, //error
message: "show URL message",
showCloseButton: true,
action:urlAction
}
Xrm.App.addGlobalNotification(notification).then(
function success(result) {
console.log("Notification created with ID: " + result);
// perform other operations as required on notification display
},
function (error) {
console.log(error.message);
// handle error conditions
}
);
setFormNotification will show only string. I want to display an URL
Hi,
Have you tried the setFormNotification?
docs.microsoft.com/.../setFormNotification
Hope it helps,
Marco
André Arnaud de Cal...
292,494
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156