Tuesday, February 7, 2023

Difference between Coc and Event Handler in D365

Event Handler                                                                                       coc

1.Post Event Handler is static, does not allow you to         1. allow all methods in coc

 have access to protected members of a class                 

                               

2.                                                                                         2.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. 

No comments:

Post a Comment

How to Control Edit Access for Sales Tax Fields in PR Lines Through Configuration in D365 Finance & Operations

 To provide a configuration-driven approach for controlling edit access to the Item Sales Tax Group and Sales Tax Group fields on Purchase...