Please let me know if you have a better way to manage this development life cycle. Id be keen to improve the experience.
What does the mobile application look like?
The project solution on disk
This project uses TypeScript with VS Code. Typescript helped catch lots of issues before deployment.
Requirements to build and debug the solution
- Latest Typescript
- Visual Studio 2015 +
- LINQ Pad (just to copy the local dev files to the local Window Store Field Service App folder)
- Field Service – Dynamics 365 application installed
How do I build the solution?
This should give you the TypeScript jQuery & Sizzle files for intellisense in VS Code / Visual Studio
Open up the file ‘vForms-directory-sync.linq’
Here we need to replace the highlighted yellow with your local Field Service application data package directory
Run this script and it will ‘watch’ your development files and copy them to the local Field Service application folder upon change.
Warning: The Field Service application may occasional lock the file. And to refresh the view/execution of the files you need to exit the screen using them – then go back in (no Hot Module Replacement here I am afraid!)
How do I debug the solution?
To help with debugging I have set a global Boolean variable DEBUG_ENABLED which optionally may be triggered remotely via the ‘msdyn_showtechnicalhelp’ field for a survey.
Follow the steps to setup your IE settings outlined here
In your TypeScript/JavasScript file put the word ‘debugger’ to break out into a debug session
Attach Visual Studio to the MobileCrm.exe process