[Vtigercrm-developers] Create user with API in vtiger 7
Prasad
prasad at vtiger.com
Sun Feb 4 08:51:14 GMT 2018
roleid - is a virtual reference type (handled on the server), unlikely
supported through client webservice.
--
FB <http://www.facebook.com/vtiger> I Twit <http://twitter.com/vtigercrm> I
LIn <https://www.linkedin.com/company/1270573?trk=tyah> I Blog
<https://blogs.vtiger.com> I Website <https://www.vtiger.com/>
On Sat, Feb 3, 2018 at 2:10 PM, iko <irina_k6 at hotmail.com> wrote:
> Hi, here is the script I am using
>
> <?php
> //create User using library
> $moduleName = 'Users';
> //fill in the details of the User. Creating userId is obtained from
> loginResult.
> $userData = array(
> 'user_name'=>'drwho',
> 'user_password'=>'drwho',
> 'confirm_password'=>'drwho',
> 'first_name'=>'Clara',
> 'last_name'=>'Oswald',
> 'phone_work'=>'123456789',
> 'roleid'=>'H1',
> 'email1' => 'norep at drwho.tld',
> // you should define almost all the fields
> 'assigned_user_id'=>$cbUserID,
> );
> $create = $cbconn->doCreate($moduleName, $userData);
>
> //check whether the requested operation was successful or not.
> if($create) {
> //operation was successful get the response.
> var_dump($create);
> } else {
> echo "Create failed<br>";
> $err = $cbconn->lastError();
> echo $err['code'].': '.$err['message'];
> }
>
> ?>
>
>
>
> --
> Sent from: http://vtiger-crm.2324883.n4.nabble.com/vtigercrm-
> developers-f4.html
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20180204/d15960c1/attachment.html>
More information about the vtigercrm-developers
mailing list