Using the Plug-in Code Generator
You can use the Plug-in Code Generator to create a custom plug-in script for importing budget data from Planning and Budgeting.
To create a custom plug-in script using the Plug-in Code Generator:
-
In NetSuite, go to NetSuite EPM > Planning and Budgeting > Integration Artifacts.
-
On the Plug-in Scripts subtab, click the Plug-in Code Generator link.
-
From the Plug-in Script field, select one of the following:
-
To generate a custom plug-in script to import and process budget data using a data load rule, select Import Budget Data – Data Load Rule.
-
To generate a custom plug-in script to import and process budget data using a business rule, select Import Budget Data – Business Rule.
-
-
Under Sample Budget Data File, click the available button to locate a source file on your computer. This should be a simple CSV file with column headers matching those in the export file generated by running the business rule or data load rule.
-
(Optional) To have the fields from the CSV file automatically mapped to the corresponding fields in the NetSuite budget record, keep the Map Fields with Same Name box checked.
-
Click Upload Sample File.
-
If a value in the export file includes the record's internal ID, you need to check the Value Contains Record ID box.
Note:If a value in the export file doesn't include the record's internal ID, make sure there are no duplicate records with the same name.
-
In the Field Mapping section, make any necessary changes. Then, click Preview Field Mapping, and do one of the following:
-
To return to the previous NetSuite page and make further changes to the field mapping, click Previous. Then, click Preview Field Mapping again.
-
To generate the custom plug-in script, click the Download Plug-in Script button.
This creates a file with the .js extension and downloads it to your computer. To use the file to import and process budget data from your Planning and Budgeting, proceed from step 3 in Using Planning and Budgeting Sync Post-Processing Plug-ins. For configuration details, see Plug-in Script Configuration Details.
Important:If the Use Account Numbers preference is disabled at Setup > Accounting > Accounting Preferences, the generated plug-in script will not work.
-