Notifications
Announcements
No record found.
I want to when to use table insert event handler and when form insert event ??
And one more question is that insert event only assigns and update value or it inserts too ?
What do you mean by form insert event ? For data source have event for write method. There is no insert event for form.
So if you want to do something in insert method , use eventievent handler for insert method. Event for insert and update method are different.
Ya thais is only i am asking when is this insert event used ?
Nd when does update can u pl explain ?
The OnInsert event is triggered when a record is being inserted to a table.
I don't understand the second sentence at all. Please try to rephrase is and try to use complete words (e.g. "pl" probably means "please"; I have no idea what is "nd").
Yes its please ..
Asking about the update method ?
Nd we have more event handlers too when records are inserted ...
I am asking when should we use this insert handler and when update ?
As the name of method suggests onInserting or OnInserted event handlers you are going to use if you want to do something while inserting record. Similarly during update you are going to use event handler present for update method.
An example of inserting event handler would be assigning some constant value to the field (this is just an example , there are better places to initialize fields other than insert method) . Implement these event handler and use debugger while creating record then you will understand when and how to use those.
You can use a handler for onInserting/onInserted events when you want to execute some logic when a new record is being inserted.
You can use a handler for onUpdating/onUpdated events when you want to execute some logic when an existing record is being updated.
Thank you ,
Please answer this thread also ..
community.dynamics.com/.../oninitialized-initvalue-init
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional