<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hello Vtiger Developers,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I do have an issue with vtwsclib and was wondering if anyone has been able to create a potential with it. </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
The code I am trying does not work</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<div>$module = 'Potentials';</div><div>$record = $client->doCreate($module, Array(</div><div> 'potentialname'=>'test',</div><div><span style="white-space:pre-wrap">        </span> 'closingdate'=>'',</div>
<div> 'related_to'=>'',</div><div> 'sales_stage'=>'',</div><div> 'assigned_user_id'=>'1'</div><div> ));</div><div><span style="white-space:pre-wrap">                </span> </div>
<div>if($record) {</div><div>$recordid = $client->getRecordId($record['id']);</div><div>echo $recordid;</div><div>}</div><div><br></div><div>If anyone has a working example of what array should I send I would greatly appreciate it!</div>
</div><br class="Apple-interchange-newline"><div><br></div>-- <br>Best Regards,<br><br>Petar Dimov<br><br><br>