MuleSoft Connector for NetSuite

Build 20.0.7606

Batch Processing

Use the Bulk Execute operation to combine multiple statements of the same data manipulation operation into one statement. When the Bulk Execute operation is invoked, the connector builds one API request for each type of operation.

Configuring Bulk Ops in the Visual Editor

To configure the operation in the Visual Editor, select the connector inside your flow and specify the following connector properties.

  • Connector Configuration: Select a connection you created. See Establishing a Connection for more information.
  • Operation: Choose Bulk Execute.
  • SQL Query: Enter one or more SQL statements. See the following examples. The statements can also contain expressions.

Bulk Insert

The following examples combine multiple inserts into a single NetSuite request:

SQL

INSERT INTO Account (AcctName) VALUES ('Savings'); INSERT INTO Account (AcctName) VALUES ('Petty Cash');
XML
<cdata-netsuitebulk-execute config-ref="CData_NetSuite_Configuration" query="INSERT INTO Account (AcctName) VALUES ('Savings'); INSERT INTO Account (AcctName) VALUES ('Petty Cash');" doc:name="CData NetSuite"/>

Bulk Update

The following examples combine multiple updates into a single NetSuite request:

SQL

UPDATE Account SET AcctName='Savings' WHERE InternalId = 'MyInternalId1';UPDATE Account SET AcctName='Petty Cash' WHERE InternalId = 'MyInternalId2';
XML
<cdata-netsuitebulk-execute config-ref="CData_NetSuite_Configuration" query="UPDATE Account SET AcctName='Savings' WHERE InternalId = 'MyInternalId1';UPDATE Account SET AcctName='Petty Cash' WHERE InternalId = 'MyInternalId2';" doc:name="CData NetSuite"/>

Bulk Delete

The following examples combine multiple deletes into a single NetSuite request:

SQL

DELETE FROM Account WHERE InternalId = 'MyInternalId1'; DELETE FROM Account WHERE InternalId = 'MyInternalId2'; 
XML
<cdata-netsuitebulk-execute config-ref="CData_NetSuite_Configuration" query="DELETE FROM Account WHERE InternalId = 'MyInternalId1'; DELETE FROM Account WHERE InternalId = 'MyInternalId2'; " doc:name="CData NetSuite"/>

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7606