Notifications
Announcements
No record found.
Hello Everyone,
Can anyone help me to understand the difference between Coc & Post Event Handler in 365.
Post Event Handler is static, does not allow you to have access to protected members of a class. Also you cannot add new method or class state via event handler, so CoC is way more powerful.
Hi Mayur,
COC is nearly the same as pre and post handlers, pre being before the next call and post after it. The advantage of chain of command is you can share the same method variables in the pre and post (before/after next() call) or share the same tts block inside your COC method. COC also supports return value and parameter modification of the extended method in a much more readable manner.
For more details, community.dynamics.com/.../ax7-d365-chain-of-command-with-example
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.