Scoped GlideRecord - setAbortAction(Boolean b)

Sets a flag to indicate if the next database action (insert, update, delete) is to be aborted. This is often used in business rules.

Table 1. Parameters
Name Type Description
b Boolean True to abort the next action. False if the action is to be allowed.
Table 2. Returns
Type Description
void
// Often used in business rule to check whether the current operation should be aborted.
if (current.size > 16) {
  current.setAbortAction(true);
}

Output: