[Vtigercrm-developers] Examples of new Webservices functions?
Alan Lord
alanslists at gmail.com
Tue Jul 21 13:55:25 GMT 2015
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2015-07-21 14:44:36.png
Type: image/png
Size: 34631 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150721/c1a71d17/attachment-0001.png>
More information about the vtigercrm-developers
mailing list