[Vtigercrm-developers] Create user with API in vtiger 7
Alan Lord
alanslists at gmail.com
Mon Feb 5 08:17:44 GMT 2018
On 04/02/18 16:00, iko wrote:
> Hi Alan,
>
> Thanks for helping out. I have tried but with no success. What does your
> command line look like? Do you pass csv file name in the command line?
yes, of course... See line 9:
> $file = $argv[1];
so your command line would be (from the root of the vtiger directory):
# php name_of_create_user_script.php path_and_name_of_input_file.csv
I provided the script as an *example* to show that you can create users
using the server api. If you create an array that looks like the columns
of the csv I mentioned before then it will work. You do not _need_ to
use a csv if you don't want to. Also note in the example, the csv is
delimeted using a ";" not a ",". You might want to change this.
Please note that there is NO assigned_user_id field in a User record.
Al
More information about the vtigercrm-developers
mailing list