<div dir="ltr">Hi Alan,<div><br></div><div>Thanks! for the alert, we are analyzing this case.</div><div><br></div><div>Will get back to you with better web service endpoint to fetch entity modules.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 18, 2020 at 4:44 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">Just FYI, adding "owner" to the fieldTypeList array does improve things <br>
but I stlll have ModComments, SMSNotifier and PBXManager.<br>
<br>
<br>
Al<br>
<br>
<br>
On 18/02/2020 11:00, Alan Lord wrote:<br>
> In a custom module I am developing I want to get a list of all permitted <br>
> entity modules for the current_user.<br>
> <br>
> Using vtws_listtypes and filtering on types with isEntity = 1 is a bit <br>
> rubbish to be honest:<br>
> <br>
>      [0] => Campaigns<br>
>      [1] => Invoice<br>
>      [2] => SalesOrder<br>
>      [3] => PurchaseOrder<br>
>      [4] => Quotes<br>
>      [5] => Faq<br>
>      [6] => Vendors<br>
>      [7] => PriceBooks<br>
>      [8] => Calendar<br>
>      [9] => Leads<br>
>      [10] => Accounts<br>
>      [11] => Contacts<br>
>      [12] => Potentials<br>
>      [13] => Products<br>
>      [14] => Documents<br>
>      [15] => Emails<br>
>      [16] => HelpDesk<br>
>      [17] => Events<br>
>      [18] => Users<br>
>      [19] => Services<br>
>      [20] => PBXManager<br>
>      [21] => ServiceContracts<br>
>      [22] => SMSNotifier<br>
>      [23] => ModComments<br>
>      [24] => ProjectMilestone<br>
>      [25] => ProjectTask<br>
>      [26] => Project<br>
>      [27] => Assets<br>
> <br>
> PriceBooks, Emails, Users. PBXManager, SMSNotifier and ModComments <br>
> shouldn't really be in my list. Obviously I can hardcode to remove <br>
> these, but, for example if another custom module was installed which was <br>
> an Entity type but not really a "normal" module it would also be in this <br>
> list which is not really what I am looking for.<br>
> <br>
> In the Vtiger_Module_Model the method getSearchableModules() appears to <br>
> be much closer to what I want but this is not available via the server <br>
> API...<br>
> <br>
> <br>
> Al<br>
> <br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
> <br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></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>