[Vtigercrm-developers] Examples of new Webservices functions?

Manu urs manu.k at vtiger.com
Tue Jul 21 15:44:29 GMT 2015


Hi  Alan,

The return statement is missed in the GetRelatedListBase() api of
include/RelatedListView.php . Please add the below  statement in the Line
no  : 47

 return array('query' => $query);
>

Now you can work joyfully :-)

Regards,
Manu Urs

On Tue, Jul 21, 2015 at 7:25 PM, Alan Lord <alanslists at gmail.com> wrote:

> On 21/07/15 13:43, Manu urs wrote:
>
>> Hi
>>
>> Here is some information about  it .
>>
>
> Thanks Manu that was useful.
>
> I have been trying to get the vtws_retrieve_related to work but with no
> joy.
>
> If you look at the attached screenshot you should see I am looking at the
> related Contacts of an Account with a crmid of 355 (This is a brand new,
> clean installation of vtiger 6.3. which I just imported a bunch of Accounts
> into). There is a related Contact.
>
> But when I run:
>
>  <?php
>> include_once 'vtlib/Vtiger/Module.php';
>> include_once 'includes/main/WebUI.php';
>> include_once 'include/Webservices/RetrieveRelated.php';
>>
>> $current_user = CRMEntity::getInstance('Users');
>> $current_user->retrieveCurrentUserInfoFromFile(1);
>>
>> try {
>>     echo "About to run vtws_retrieve_related" . PHP_EOL;
>>     $relatedInformation = vtws_retrieve_related('11x355', 'Contacts',
>> 'Contacts', $current_user);
>>     echo "Related Information" . PHP_EOL;
>>     print_r($relatedInformation);
>>
>> } catch (WebServiceException $ex) {
>>         echo $ex->getMessage() . PHP_EOL;
>> }
>>
>
> however it silently fails... No Webservice exception is generated:
>
>  alanlord at dev:/var/www/vt63$ php webservice-test.php
>> About to run vtws_retrieve_related
>> alanlord at web-dev:/var/www/vt63$
>>
>
> Nothing is logged by the debug logger either.
>
> Alan
>
>
> _______________________________________________
> http://www.vtiger.com/
>



-- 
Regards,
Manu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150721/5059fa62/attachment.html>


More information about the vtigercrm-developers mailing list