Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
We will get a dialog where the dialog fields are created automatically from the contract. We can even submit it to the batch queue. Pretty cool, and very little additional effort.
A lot is happening here, and this requires an explanation.
As our class extends SysOperationServiceController, we get a lot of functionality, the first being that it can construct a dialog from the data contract. However, how did it know?
When the new method executed, the framework looked at the Run method and determined the contract from the method's input parameter.
The call to startOperation caused the system to build the user interface and handle the code execution based on what the user does. The dialog is constructed using the EDTs specified ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access