<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 = &#39;Potentials&#39;;</div><div>$record = $client-&gt;doCreate($module, Array(</div><div>             &#39;potentialname&#39;=&gt;&#39;test&#39;,</div><div><span style="white-space:pre-wrap">        </span>     &#39;closingdate&#39;=&gt;&#39;&#39;,</div>
<div>             &#39;related_to&#39;=&gt;&#39;&#39;,</div><div>             &#39;sales_stage&#39;=&gt;&#39;&#39;,</div><div>             &#39;assigned_user_id&#39;=&gt;&#39;1&#39;</div><div>         ));</div><div><span style="white-space:pre-wrap">                </span> </div>
<div>if($record) {</div><div>$recordid = $client-&gt;getRecordId($record[&#39;id&#39;]);</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>