D365 CE UCI JavaScript: alert() throwing error, replace with Xrm.Navigation.openAlertDialog

Geeks,
JavaScript on new interface UCI is throwing error when we use standard alert() method on BPF field OnChange event.
alert(“message”); //Old code that is failing
sometimes it takes you to infinite loop after you click Ok to come out of context.
Easy fix as suggested by Microsoft to start use below code on UCI and .then() for call back functions is optional

Continue Reading mscrmsama’s Article on their blog

D365 CE UCI JavaScript: alert() throwing error, replace with Xrm.Navigation.openAlertDialog

Geeks, JavaScript on new interface UCI is throwing error when we use standard alert() method on BPF field OnChange event. alert(“message”); //Old code that is failing sometimes it takes you to infinite loop after you click Ok to come out of context. Easy fix as suggested by Microsoft to start use below code on UCI…

Blog Syndicated with mscrmsama’s Permission

Author: Sabjan Sama

Share This Post On

Leave a Reply

%d bloggers like this: