[Vtigercrm-developers] vtwsclib - Create Potential

Prasad prasad at vtiger.com
Fri Aug 3 00:37:05 PDT 2012


Peter,

Refer: http://forge.vtiger.com/frs/download.php/845/vtwsclib-1.4.pdf for
tips on catching the error.

Regards,
Prasad

*Connect with us on: *Twitter <http://twitter.com/#!/vtigercrm> *I*
Facebook<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall>
 *I* Blog <http://blog.vtiger.com/>* I*
Wiki<http://wiki.vtiger.com/index.php/Main_Page>
 *I *Forums  <http://forums.vtiger.com/>*I* Website <http://vtiger.com/>


On Thu, Aug 2, 2012 at 11:43 PM, Peter Dimov <phdimov at gmail.com> wrote:

> 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
>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20120803/bedb1060/attachment.html 


More information about the vtigercrm-developers mailing list