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

Sabjan SamaDyn365CE5 years ago9 Views

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

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...