Dear All;
I am confused while selecting the table Event Handlers, For Each Event handler There are three methods e.g.
validateWrite
ValidatingWrite
ValidatedWrite
validateDelete
ValidatingDelete
ValidatedDelete
validateField
ValidatingField
ValidatedField
Can Somebody Please help me to understand what is difference between them as i am new and confused which method to use..
Hi Mahamed,
They are Published Table method, Preceding event and Succeeding event. https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/customization-overlayering-extensions
Preceding Event occurs before the method's super() is called.
Succeeding Event occurs after the method's super() is called.
You can read this and do your trail : https://axguru.com/blogs/table-on-inserting-event-handler-in-dynamics-365-finance-and-operations/
Here's documentation about the table methods (first column in your question): docs.microsoft.com/.../aa625830(v=ax.60)
The corresponding events are triggered before (...ing) or after (...ed) the table method.
Please note that if the table method is overridden and contains some custom logic, you need to take into account that the events are still triggered before/after the super() call, not before/after the whole overridden method.
In addition to the event handlers, you can use Chain of Command to run your code before/after standard methods: docs.microsoft.com/.../method-wrapping-coc
Which method to use depends on what you are trying to do. Normally you use event handlers and Chain of Command when you want to add your logic to the standard processes of D365FO. When developing your own tables, you should not use event handlers or CoC, but write your code directly in the overridden table methods.
Only the first column contain methods. The other two columns contain events. The method triggers one event (such as onValidatingWrite) before running standard logic and the other (such as onValidatedWrite) after completing standard logic.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 882 User Group Leader
André Arnaud de Cal... 723 Super User 2025 Season 2
CA Neeraj Kumar 518