General X++ Development

What is the difference between `update()` and `doUpdate()` in X++?

Asked by Sunny Vasty· Aug 13, 2026· 1 answers

What is the difference between update() and doUpdate() in X++?

SSunny Vasty75 reputation · answered Aug 13, 2026

update() 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.