doUpdate method in D365 F&O
Table of Content:
doUpdate method in D365 F&O
To override the behavior of the update method, use the doUpdate method. The doUpdate method updates the current record with the contents of the buffer. It also updates the appropriate system fields. You should use the doUpdate method when the update method on the table must be bypassed. The syntax for a doUpdate table method is void doUpdate().
Warning
A call to doUpdate skips all logic, including database event handlers (for example onUpdating and onUpdated), chain-of-command onUpdate(), and the update() call itself. It's generally considered bad practice to use doUpdate, and we don't recommend that you use it.
CustTable custTable; ttsBegin; select forUpdate custTable where custTable.CreditMax == 3000; if (custTable) { custTable.CreditMax += 1000; custTable.doUpdate(); } ttsCommit;