General X++ Development
What is the difference between `update()` and `doUpdate()` in X++?
What is the difference between update() and doUpdate() in X++?
1 answer
Write an answerupdate() runs the table's normal update path.
doUpdate() writes the record while bypassing the table's overridden update() method and related event handling.
Unless you have a very specific reason, use update().
doUpdate() can skip validations, related updates, events, and custom logic that the rest of the application expects to run.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer