CsvImportTask.linkedFiles

Note:

The content in this help topic pertains to SuiteScript 2.0.

Property Description

A map of key-value pairs that sets the data to be imported in a linked file for a multi-file import job, by referencing a file in the File Cabinet or the raw CSV data to import.

The key is the internal ID of the record sublist for which data is being imported and the value is either a file.File object or the raw CSV data to import.

You can assign multiple types of values to the linkedFiles property.

Type

Object

Supported Script Types

Server scripts

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

Module

N/task Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/task Module Script Samples.

          //Add additional code 
...
scriptTask.linkedFiles = {'addressbook': 'street,city\nval1,val2',
    'purchases': file.load('SuiteScripts/other.csv')};
...
//Add additional code 

        

Related Topics

task.CsvImportTask
N/task Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices