Bonus Record Action

cancel

Corresponding UI Button

Exclude from Payroll

Action Description

Excludes the existing bonus from the upcoming payroll run.

The action.ALL_QUALIFIED_INSTANCES constant is currently not supported.

Returns

void

Supported Script Types

Client and server scripts

For additional information, see SuiteScript 2.x Script Types.

Since

2020.1

Parameters

See action.execute(options) for details about parameters required for the execution of any action.

Bonus Cancel Action Syntax

            require(['N/action'], function(action) {
    // action & action list loading    
    var actionList = action.find({
        recordType: 'bonus'
    });
    var actionObj = action.get({
        recordType: 'bonus',
        id: 'cancel'
    });
    // action execution    
    var result = actionObj.execute({
        recordId: 1
    });
    var result = action.execute({
        recordType: 'bonus',
        id: 'cancel',
        params: {
            recordId: 2
        }
    });
}); 

          

Related Topics

General Notices