[Vtigercrm-developers] Importing records

Alan Lord alanslists at gmail.com
Mon Sep 28 06:58:48 GMT 2015


On 26/09/15 09:24, lajeesh k wrote:
>
> @Alan can you share your server api script with us, so that i can save
> time for writing the script
>

Something like this should help you get started.

http://paste.ubuntu.com/12600586/

This is for vtiger 5.4.0 but there won't be much change to make it work 
for 6; probably just include the main webUI entry point.

Note this script reads in a csv file with the separator a semi-colon.

For large imports I break the csv file into multiple files of say 50,000 
each and then call this script from a bash shell script wrapper which 
does something like this:

> for FILE in ${FILES}
>
> do
> 	php -f write-csv.php ${FILEPATH}${FILE}
> done


HTH


Al





More information about the vtigercrm-developers mailing list