<div dir="ltr"><div><div><div>Hello Estevan<br><br></div><div>Thanks for the feedbakc<br></div><div><br></div>My script is working! and  in https.<br><br></div>My next roadblock is I want to assign a group for the lead so I have done this because the Group entity Id is 28 and the group I want is 2<br>    $record = $client->doCreate($module, Array('lastname'=>'Test_LS', 'company'=>'Test', 'assigned_user_id'=>'28x2'));<br><br></div>but I have the following message with my admin account....<br> ACCESS_DENIED:Permission to perform the operation is denied<br><div class="gmail_extra"><br></div><div class="gmail_extra">still in vtiger 6.2 just in case<br></div><div class="gmail_extra">Thanks in advance<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Christophe Humbert<br><br></div></div>
<br><div class="gmail_quote">On Mon, Jun 15, 2015 at 11:05 PM, estevan <span dir="ltr"><<a href="mailto:estefan.civera@gmail.com" target="_blank">estefan.civera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">only two suggestion<br>
<br>
try with http not https<br>
<br>
use dodescribe function the get info about fields such as mandatory<br>
nullable....<br>
<br>
however it's seem to be correct your script!!<br>
<br>
<?php<br>
        include_once('vtwsclib/Vtiger/WSClient.php');<br>
        $url = '<a href="http://localhost/crd" rel="noreferrer" target="_blank">http://localhost/crd</a>';<br>
        $client = new Vtiger_WSClient($url);<br>
<br>
        $login = $client->doLogin('admin', 'VWZfGSy7NYpKYmfY');<br>
        if(!$login)<br>
      die('Login Failed');<br>
<span class=""><br>
        if(!$login)<br>
                echo 'Login Failed';<br>
        else {<br>
<br>
</span>                $recordInfo = $client->doDescribe('Leads');<br>
                if($recordInfo) {<br>
                        echo "<pre>doDescribe";<br>
                        print_r($recordInfo);<br>
                        echo "</pre>";<br>
                }<br>
                else<br>
                        print_r($client->lasterror());<br>
        }<br>
<br>
?><br>
<br>
<br>
<br>
<br>
-----<br>
Ing. Estefan Civera<br>
Vtiger developer and consultant<br>
<a href="http://www.estefancivera.net" rel="noreferrer" target="_blank">http://www.estefancivera.net</a><br>
Italy<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Create-a-Lead-in-Web-service-using-vtwsclib-1-5-tp16558p16576.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Create-a-Lead-in-Web-service-using-vtwsclib-1-5-tp16558p16576.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div></div>