Skip to content

Simple node.js script to import data from CVS to Targetprocess via REST API

Notifications You must be signed in to change notification settings

pavel-drabushevich/tp-simple-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple node.js script to import data from CVS to Targetprocess via REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published