[Vtigercrm-developers] vtwsclib - Create Potential

Prasad prasad at vtiger.com
Wed Aug 1 21:45:52 PDT 2012


Peter,

Make sure to fill in valid data for mandatory fields of the Potentials
module. You can refer the Create/Edit form first before creating record.
Also check any error after the operations.

Regards,
Prasad
vtiger Team

On Thu, Aug 2, 2012 at 2:33 AM, Peter Dimov <phdimov at gmail.com> wrote:

> Hello Vtiger Developers,
>
> I do have an issue with vtwsclib and was wondering if anyone has been able
> to create a potential with it.
>
> The code I am trying does not work
>
> $module = 'Potentials';
> $record = $client->doCreate($module, Array(
>              'potentialname'=>'test',
>      'closingdate'=>'',
>              'related_to'=>'',
>              'sales_stage'=>'',
>              'assigned_user_id'=>'1'
>          ));
>
> if($record) {
> $recordid = $client->getRecordId($record['id']);
> echo $recordid;
> }
>
> If anyone has a working example of what array should I send I would
> greatly appreciate it!
>
>
> --
> Best Regards,
>
> Petar Dimov
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120802/b9472b65/attachment.html 


More information about the vtigercrm-developers mailing list