CRM for Tablets: How to debug those script errors

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:

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.

We deliver the complete integration and development of sales, marketing and customer service technologies. TopLine Strategies’ project management is designed to achieve 100 percent user adoption of the technologies implemented, and deliver measurable returns on investment for clients.

Whether our clients are searching for an expert firm to analyze and execute a critical project, employees to augment an information technology team or contractors to assist with technology needs, we deliver on-time, cost-effective solutions that optimize client results. Over the years, our methods have remained the same: establish long-term relationships, assess requirements, research and analyze options, recommend appropriate solutions, implement, integrate and optimize performance.

We deliver the complete integration and development of sales, marketing and customer service technologies. TopLine Strategies’ project management is designed to achieve 100 percent user adoption of the technologies implemented, and deliver measurable returns on investment for clients.

Whether our clients are searching for an expert firm to analyze and execute a critical project, employees to augment an information technology team or contractors to assist with technology needs, we deliver on-time, cost-effective solutions that optimize client results. Over the years, our methods have remained the same: establish long-term relationships, assess requirements, research and analyze options, recommend appropriate solutions, implement, integrate and optimize performance.