Bulk action in timesheet and time bill using Action module

Bulk actions in the timesheet and time bill can be done through the n/action module.
action.executeBulk({}) the function can be used for the bulk execution following records to complete the specified actions in the list.

The supported actions and records are as follows.

Record TypeAction IDUI Button Label
Revenue ArrangementallocateAllocate
Time (TimeBill)approveApprove
Time (TimeBill)rejectReject
Time (TimeBill)submitSubmit
Weekly TimesheetapproveApprove All Pending
Weekly TimesheetrejectReject All Pending
Weekly TimesheetsubmitSubmit
BonuscancelExclude from Payroll
var approveRecords = action.executeBulk({
        recordType: 'timebill',
        id: 'approve',
        params: [{ recordId: 1, note: 'note for 1' },
                 { recordId: 5, note: 'note for 5' },
                 { recordId: 23, note: 'note for 23' }]
        })
    });

Leave a comment

Your email address will not be published. Required fields are marked *