Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
When the state machine generated the classes, it added a delegate that is called whenever the state changes. This delegate is called before the changes are committed. The table is passed by reference, which means that we can revert the status back without calling update. If we did call update, we could cause concurrency issues within the standard code.
We used the parameter class pattern as opposed to a contract or simply public variables because it is easier to extend and refactor, and our customers can add parameters using extensibility features. When writing for extensibility, we should consider how we would add a parameter and consume it using extensions. Looking at the code, we should add a delegate that is called in ...
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