Navigating the Dynamics 365 Transition: Anaxco's Journey to Operational Excellence with Companial's Support
Learn moreAdvanced WHS Mobile Device Development: [Part 2] – How to Select the Sales Order
Monday, July 13, 2020
Reading time: 3 minutes
Welcome to the second part of our WHS mobile device development series where we will dive into how you can improve your mobile device development experience in Dynamics 365 Finance & Supply Chain management by building new process windows using the process guide framework.
Throughout this blog post, we will walk through the first step – Sales order selection. This consists of the Sales ID input field and details panel.

Dynamics 365 WHS Mobile Device Development - How to Select the Sales Order
To create a new process, you will need to make some adjustments to the standard so that you can create a Mobile device menu item record that has a process guide framework enabled. The first thing you need to do is to extend a few enums for your process: WHSWorkExecuteMode and WHSWorkActivity or WHSWorkCreationProcess, depending on what kind of process you are creating (Work-related or indirect).
Once you have extended the standard enums, you can now enable the process guide functionality for the process by modifying WHSRFMenuItemTable.workActivityMustUseProcess GuideFramework() method:
protected void addDataControls(ProcessGuidePage _page)
{
_page.addTextBox(ProcessGuideDataTypeNames::SalesId, “@MCR12613“, extendedTypeNum(SalesId));
//Fill details panel
_page.addLabel(ProcessGuideDataTypeNames::RFTitle, ‘Instructions:‘, extendedTypeNum(Description));
_page.addLabel(ProcessGuideDataTypeNames::RFDescription1, “@MCR35828“, extendedTypeNum(Description));
}
protected void addActionControls(ProcessGuidePage _page)
{
#ProcessGuideActionNames
_page.addButton(step.createAction(#ActionOK), true);
_page.addButton(step.createAction(#ActionCancelExitProcess));
}
As for ERASalesProcessGuidePromptSalesIdStep class, we must make sure that the value entered by the user is a valid one. The isComplete() method is used to evaluate if the step is completed and the validateControls() method is used to handle what we should do if the step is not valid.
protected boolean isComplete()
{
WhsrfPassthrough pass = controller.parmSessionState().parmPass();
SalesId salesId = pass.lookup(ProcessGuideDataTypeNames::SalesId);
return SalesTable::exist(salesId);
}
protected void validateControls()
{
SalesId salesId = processingResult.fieldValues.lookupStr(ProcessGuideDataTypeNames::SalesId);
if (!SalesTable::exist(salesId))
{
throw error(strFmt(“@MCR10331“, salesId));
}
super();
}
The result of this step is the following:
We hope that you have found these insights useful and that they help you to improve your Dynamics 365 Finance & Supply Chain WHS mobile device development process. Don’t hesitate to contact our team at service@companial.com if you have any questions or need help with development!
In case you missed part 1 of the blog series, check it out now to learn more about the process guide framework
Part three of this four-part blog series on Dynamics 365 Finance & Supply Chain Management WHS mobile device development process is available here.
Edgaras Radvilas is a devoted Microsoft Dynamics AX professional with more than 7 years of experience in AX 2009, AX 2012, and Dynamics 365 F&SCM development and upgrades. His responsibilities also include solution architecture, technical design preparation, implementation, testing, and support duties. Skilled in X++ development for Sales, Purchases, Project management, Inventory and Warehouse management, Finances modules, as well as in building custom service-based integrations. In addition to that, he also has experience with warehouse management mobile app development.
- What’s New in the 2023 Platform Updates for Microsoft Dynamics 365 Finance & Supply Chain Management: Part 2 - 19/07/2023
- What’s New in the 2023 Platform Updates for Microsoft Dynamics 365 Finance & Supply Chain Management: Part 1 - 18/07/2023
- What’s New in the Platform Updates for Microsoft D365 F&SCM: 2023 Release Wave 1 - 19/04/2023
More about Finance and Supply Chain Management
What’s New in the 2023 Platform Updates for Microsoft Dynamics 365 Finance & Supply Chain Management: Release wave 2
In this blog post, we’ll dive deeper into the 2023 release wave 2 for Dynamics 365 Finance and Supply Chain ...
Learn moreRunning Dynamics 365 Finance & Supply Chain Management Data Export with Azure Data Lake V2 and Azure Synapse: Real-Life User Story
In this blog, we’ll explore the process of synchronizing data from Microsoft Dynamics 365 Finance & Supply Chain Management to ...
Learn moreWhat’s New in the 2023 Platform Updates for Microsoft Dynamics 365 Finance & Supply Chain Management: Part 2
In this blog, we’ll provide you with a comprehensive overview of the upcoming and recently released improvements in Dynamics 365 ...
Learn moreWhat’s New in the 2023 Platform Updates for Microsoft Dynamics 365 Finance & Supply Chain Management: Part 1
As Microsoft Dynamics 365 Finance and Supply Chain Management (previously known as Finance and Operations) receives 8 platform updates annually, ...
Learn moreCatch the Momentum of “Bridge to the Cloud 2” Promotion: An Exclusive Opportunity to Migrate your Dynamics AX Customers to Dynamics 365 F&SCM Cloud
Are you looking to modernize your Dynamics AX customers’ business processes and take advantage of the latest Microsoft Dynamics 365 ...
Learn more