Invoice Group Record Actions

groupinvoices

Corresponding UI Button

Group Invoices

Action Description

Groups invoices into groups based on the customer name and common criteria. The Invoice Groups feature must be enabled to use this action. For more information about the Invoice Groups feature, see Invoice Groups Overview.

Returns

{notifications:[], response:{}}

Supported Script Types

Client and server scripts

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

Governance

None

Since

2020.2

The internal ID for this action is groupinvoices.

The Group Invoices action appears on the Invoice Groups Overview record type.

For help working with the invoice groups record in the UI, see Viewing the Invoice Group Record.

Supported Functions

The invoice group record is partially scriptable. It can be created, updated, deleted, and searched using SuiteScript. It cannot be copied or transformed.

Possible Error Messages

Parameters

Code Sample

          require(['N/action'], function(actionMod) {



var result = actionMod.execute({id: 'groupinvoices', recordType: 'invoiceGroup', params: {recordId: 1, invoicelist:'3,4,9'}});



...

// Add additional code 

        

removeinvoicesfromgroup

Corresponding UI Button

Remove From Group

Action Description

Removes invoices from an invoice group. The Invoice Groups feature must be enabled to use this action. For more information about the Invoice Groups feature, see Invoice Groups Overview.

Returns

{notifications:[], response:{}}

Supported Script Types

Client and server scripts

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

Governance

None

Since

2020.2

The internal ID for this action is removeinvoicesfromgroup.

The Remove From Group action appears on the Invoice Group record type.

For help working with the invoice groups record in the UI, see Viewing the Invoice Group Record.

Supported Functions

The invoice group record is partially scriptable. It can be created, updated, deleted, and searched using SuiteScript. It cannot be copied or transformed.

Possible Error Messages

Parameters

Code Sample

          require(['N/action'], function(actionMod) {

var result = actionMod.execute({id: 'removeinvoicesfromgroup', recordType: 'invoiceGroup', params: {recordId: 1, invoicelist:'3,4,9'}}); });

...

// Add additional code 

        

Related Topics

Invoice Group
Working with the SuiteScript Records Browser
SuiteCloud Supported Records
Transactions

General Notices