I was tasked with developing a custom "process" for printing ad hoc labels in the Dynamics 365SCM WHS app.
WHS process guide - development docs
Reading the great articles from 1clickfactory (starting point https://www.1clickfactory.com/blog/advanced-whs-mobile-device-development-part-1-process-guide-framework/) gives a good starting point.
Especially Edgaras' tip on running
SysExtensionCache::clearAllScopes();
in a runnable class after introducing a new step/pagebuilder class combination is VERY useful.
However, I wanted to chip in with a couple of things.
Extending WHS base enums
If you extend the WHSActivity, WHSWorkExecuteMode or WHSWorktransType base enums with new options it is a good idea to run a database synchronization when you are done with extending them.Otherwise you might be frustrated to find, that you are unable to find your new options in the user interface.
Include numbering in class naming
When developing a process, with several steps, I found it useful to sneak in a step number when naming the page builder and step classes. I found it useful when working with the classes in the solution explorer, as it provides a good overview, and you know which step in the process you are working on.
One field one step - one page builder
Also I found that making a step and a page builder for each field that needs to collect data eases the effort to get it to work with the app.
Testing - App only
The D365 WHS App Emulator and the App does not give the same user experience, so I tested my work using ONLY the app.
Really very informative post about framework. Share more post similar like this. Waiting for your upcoming content. Also product engineering will helpful to complete the process development process. Checkout to here more about product engineering services and how it's helps for software project management.
ReplyDelete