addSourceList()

options is a JavaScript object with the following input parameters:

Parameter

Type

Required

Description

Since

options

Object

Yes

Contains the source list.

2026.2

options.sourceList

Object[]

Yes

An ordered array of objects identifying the files to import. NetSuite accepts up to 100 files across all addSourceList() calls during one import cycle.

If the source list is empty, NetSuite creates a successful Bank Import History record to indicate that no files were selected for import. NetSuite does not invoke getTransactionData().

2026.2

options.sourceList[].name

String

Yes

The file name identifying the source to retrieve. The value must contain at least one non-whitespace character and must not exceed 255 characters. NetSuite preserves the supplied file name.

2026.2

Example

            context.addSourceList({sourceList: [
  {name: 'bank-transaction-01.csv' },
  {name: 'bank-transaction-02.csv' }
]}); 

          

Usage Notes

Be aware of the following:

  • NetSuite ignores entries beyond the first 100 without generating an error in Bank Import History or the logs.

  • The SuiteApp must track submitted files and supply any remaining files during subsequent import cycles.

  • The interface accepts duplicate file names. The SuiteApp must prevent duplicate submissions and unintended reprocessing.

General Notices