Simple Node.js script to import entities from CSV files to Targetprocess. Tested on Node.js v4.2.4.
Script uses several third party libraries, please run npm install
command to install them.
Script has several parametrs, run node import.js -h
command to see help. Some of them have default values, please see begining of import.js. But it is better to specify them in command line.
For example you can start import with following command
node import.js -u http://targetprocess -t MTpGMjRERDMxODUzNDkasGHDsdQ0NEY4NkFFOEJCMjkzMw== -f Projects_List.csv
Please open <targetprocess_url>/api/v1/Authentication
page in your browser to get Targetprocess API token.
All errors are saved to import.log
in current directory.
config.js file contains configuration for this script, for example CSV columns mappings to Targetprocess fields. Current configuration based on sample files in this repository.
Note: this script just import data, so before run it please setup workflow and create custom fields.