<div dir="ltr">Hi Alan,<div><br></div><div>That looks like a valid request to enhance our webservice api to fetch more relevant data to support developers.</div><div><br></div><div>We will enhance vtws_relatedtypes api to fetch requested data. Please do file an issue on <a href="http://code.vtiger.com">code.vtiger.com</a> to track the updates.</div><div><br></div><div>>> is there also a supported way to manipulate</div>relationships as well?<div>No, updates on relationships are not allowed.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 14, 2020 at 3:31 PM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'd like to be able to find and then add, delete, or modify <br>
relationships between a custom module and the rest of vtiger.<br>
<br>
When I call vtws_relatedtypes('MyCustomModule', $user);<br>
<br>
I get a very minimal amount of information back:<br>
<br>
     [types] => Array<br>
         (<br>
             [0] => Accounts<br>
             [1] => Project<br>
             [2] => HelpDesk<br>
         )<br>
<br>
     [information] => Array<br>
         (<br>
             [Accounts] => Array<br>
                 (<br>
                     [name] => Accounts<br>
                     [label] => Accounts<br>
                     [isEntity] => 1<br>
                 )<br>
<br>
             [Project] => Array<br>
                 (<br>
                     [name] => Project<br>
                     [label] => Project<br>
                     [isEntity] => 1<br>
                 )<br>
<br>
             [HelpDesk] => Array<br>
                 (<br>
                     [name] => HelpDesk<br>
                     [label] => HelpDesk<br>
                     [isEntity] => 1<br>
                 )<br>
<br>
         )<br>
<br>
I would really like to know more, like:<br>
<br>
* the method_name, e.g. get_related_list,<br>
* the actions supported, e.g. add, select,<br>
* the relationfield (if a 1:n)<br>
* the relationtype, e.g. 1:N, N;N<br>
<br>
Is there a [Marketplace] supported way to do this using the server api? <br>
I can't find it. And if yes, is there also a supported way to manipulate <br>
relationships as well?<br>
<br>
Cheers<br>
<br>
Al<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>