Uploading a Plug-in Script
To import Transaction Matching adjustments using a data load rule, you first need to upload a plug-in script.
To upload a plug-in script:
-
In NetSuite, Go to NetSuite EMP > Account Reconciliation > Integration Artifacts.
-
Download a sample Import Journal Entries
pi_journal_entry_v1.js
plug-in script. -
Open the file in a text editor, for example, Notepad++.
-
In the section shown on the screenshot that defines the CSV file location, enter the path to the CSV file created in Creating a New Folder. For example,
inbox/journal_entries/journal_entry.csv
./** * @public * @description Return configuration parameters of this plugin that are required by calling code * eg: path to csv file in ARCS to be downloaded * @returns {Object} options configuration parameters */ function getConfiguration() { log.audit('getConfiguration', 'import journal entries plugin getConfiguration called'); const options = { jobParams: { dataFilePath: 'inbox/journal_entries/journal_entry.csv', // path to csv file in ARCS to be downloaded dataFileHeaderLines: 1 // optional, number of header lines in data file } }; return options; }
-
Save the file.
-
Go to Customization > Plug-ins > Plug-in Implementations > New, and do the following:
-
Click the plus (+) sign.
-
Upload the saved plug-in file.
-
Click Save.
-
Click the Create Plug-in Implementation button.
-
In the Type field, select NSAR | PI Job Post Process.
-
Enter a unique name for the plug-in implementation.
-
In the Status field, select Released.
-
Click Save.
Note:The plug-in script file can be changed later, for example, if you want to add new fields. See Loading Account Reconciliation Data into NetSuite.
-