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

My Requirement is Delete option in Vendor Master for all roles except System Administrator

   [FormControlEventHandler(formControlStr(VendParameters, VendParameters_YNV_VendorMasterDeletionOption), FormControlEventType::Modified)] ...