If your javascript code is peppered with alerts and confirms, it’s time to stock up on the invigorating drink of your choice and rewrite. The reason is very simple – CRM for tablets does not like anything that blocks execution. New stablemates are alertDialog and confirmDialog – use them to display messages to users and set code to execute based on their response. Because of the asynchronous nature, the signature of the functions is different and involves callbacks:
Xrm.Utility.alertDialog(message, onCloseCallback) Xrm.Utility.confirmDialog(message, yesCloseCallback, noCloseCallback)