[Vtigercrm-developers] vtwsclib - Create Potential

Peter Dimov phdimov at gmail.com
Thu Aug 2 11:13:36 PDT 2012


Hi Prasad,

Thank you for your reply. I can't get the an error to show so can tell what
I am missing. How do I do that?

If you can send me one example of a potential being created that would be
super!

PD

On Wed, Aug 1, 2012 at 11:45 PM, Prasad <prasad at vtiger.com> wrote:

> 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/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Best Regards,

Petar Dimov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120802/a5a170c3/attachment.html 


More information about the vtigercrm-developers mailing list