[Vtigercrm-developers] Getting Entity Values from a crmid?

Alan Lord (News) alanslists at gmail.com
Wed Aug 5 05:49:19 GMT 2015


I have a crmid. I know it is for an entity record, like a Lead or 
Account etc. but I do not know specifically which entity module it is 
from; I just have the crmid at this point.

I want to retrieve the value of the entityname field for this crmid, 
e.g. so if it is an Account crmid I should get back the Account Name.

Is there a single API command to do this or do I have to first determine 
the module type? I know I _can_ query the setype from vtiger_crmentity 
but presumably there is an API for this somewhere already ;-)

It might even be helpful to get the displayvalue from the Field Model 
(so I I could generate the URL to the record...)

Cheers

Al


-- 
Libertus Solutions
http://www.libertus.co.uk



More information about the vtigercrm-developers mailing list