Scoped GlideRecord - operation()

Retrieves the current operation being performed, such as insert, update, or delete.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The current operation.
//Commonly used in a business rule, returns insert if the current operation is insert
gs.info("current operation " + current.operation());

Output: