Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
It was tempting to simply write a purchase order generation that worked directly from a service order. This would have been slightly quicker to write and there would be no need to pass data back and forth to the order generation class. This also means that the code is less flexible and cannot be reused. By having code in a more granular level, it is also easier for others to extend it. We can decide exactly what should be protected from changes by other developers and allow extensions at specific points to ensure that our code is not broken.
Once we have released code that has either protected or public methods, we are to an extent locked. Other developers could be using the public methods, as they should and extending classes ...
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