CRM for Tablets: How to debug those script errors

Printer-friendly version

If you’ve spent any time developing with the CRM mobile app, you know how frustrating it can be when trying to track down bugs. It’s one thing if the browser version of CRM is having the same issues, but adding Xrm.Utility.alertDialog calls will only get you so far. However, the guys over at Dynamics CRM Tip of the Day posted a fantastic way around this that’s so sensible and easy, I’m surprised it’s not more widely recommended: Tip #803: Troubleshooting form scripts in mobile.

It ties back to the fact that you can open a mobile app emulator in your browser, which they also covered in Tip #127: Test CRM for Tablets from a PC browser. You log into CRM, then enter in the following URL in a different window or tab, switching out the “orgname.crm.dynamics.com” and the “org” and “server” variables to match your environment:

https://orgname.crm.dynamics.com/nga/main.htm?org=orgname&server=https:/...

From there, it’s as simple as adding debugger statements to your code, just as you would when troubleshooting the web version. It’s so simple and obvious, but I’m sure it doesn’t occur to many developers that the debugger statements will still be picked up by the browser when the emulator runs the JavaScript. Of course, the browser version of the mobile app isn’t a perfect representation of what runs on the tablet, but this is definitely a useful tool to have.

About the Author:

TopLine Strategies delivers the complete integration and development of sales, marketing and customer service technologies that enable corporate clientele to improve revenue streams and strengthen customer interactions. Our project management and consulting is designed to achieve timely delivery, 100 percent user adoption of the technologies we implement and deliver measurable returns on investments for our clients.

Comments (0)

Related Blogs

A while back I had set up a Hyper-V virtual machine, but it had been a while since I've needed to use it again. The time came again recently as I needed a VM to do some OS-specific testing.

Have you given your independent sales reps CRM licenses so they can access CRM directly, rather than going throug

Whether you’re a user that just wants to share a view with someone or you’re an administrator/manager that would like to create and distribute personalized views, sharing personal views is a very c

Lately I've been experimenting a bit with Azure Logic Apps, in combination with an On-premises data gateway.