Dynamics CRM 8 and earlier supported Api Xrm.Page which you could use in a script to set alert banners at the top of a page/form in the UI.
I want to update my custom scripts that use Xrm.Page.getAttribute andxrm.page.ui.setformnotification Xrm.Page.ui.setFormNotification since Xrm.Page has been deprecated in Dynamics 365 9.
I know I need to use formContext.ui.setFormNotification instead of xrm.page.ui.setformnotification. What do I use to replace Xrm.Page.getAttribute?
Thanks!
example script to be updated:
function CustSvcManaged() {
var CustSvcManaged = Xrm.Page.getAttribute("et_custsvcmgd").getValue()
if (CustSvcManaged == '1') {
Xrm.Page.ui.setFormNotification("This customer is managed by the Customer Service group", "INFORMATION");
}
}