Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
We have just used the concepts from the start of the chapter to implement a pattern that is designed to be extended. We could have written the previous three recipes in one step and in one class, which is often the case. By separating the code into distinct classes, we have created a reusable purchase order generation class, a facade to ease its usage, and a framework to allow a functional consultant to determine how it is used. Should the customer change their mind on which conditions the code should run, it is done without changing code.
This should reinforce why interfaces are useful. We were able to write the whole framework without implementing the specific create purchase order action.
There will be cases where a code ...
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