Hello,
I am using the rbf_getFields function to retrieve some field values however, I only get the ID of a lookup field. How should I use the field name if I need to retrieve the name of the lookup field value? I don't want to use multiple API calls if possible.
Thanks.
rbf_getFields("account", 12345, "contact", function returned_callback(objName, objId, values) { var contactID = values["contact"]; var contactName = ??; // How do I get this? });
Hi Iram,
Yes we have created a bug for this. We are planning a generic API implementation that would fetch record details like id,name ,value etc based based on query. Will update accordingly. Thank you.
Regards,
Ranjana Sinha
Hi Iram,
We do not have any Client Side API that retrieves names directly. The only way is to make use of selectQuery() API to fetch names based on ids.
Regards,
Ranjana Sinha
Hello Ranjana,
SelectQuery gets your the name and ID where as rbf_getFields() gets you the ID's. There is no one API call that gets both?
I would like to fetch the name and the ID in one API call preferably.
Kindly let me know.
Cheers.
Iram
Hi Iram,
Unfortunately we do not have one API that does both. :(
Regards,
Ranjana Sinha
Ok so could you provide possible solutions for both i.e. rbf_getFields(...) with a selectQuery(..) later on to get the name value.
Also another scenario by using selectQuery(..) first to get the main ID and then get all the related ID's and their fields using rbf_getRelatedIds(..) and each record ID's field values?
Iram
Hi Iram,
Yes we have created a bug for this. We are planning a generic API implementation that would fetch record details like id,name ,value etc based based on query. Will update accordingly. Thank you.
Regards,
Ranjana Sinha
1) Getting the ID (as it is now)
2) Getting the name (using a #text in the Query)
3) Getting related ID’s for a particular record
4) Getting those related ID names, values, codes (if picklists) etc
[mention:72a479e40a674b9c88ad814f00b56636:e9ed411860ed4f2ba0265705b8793d05] ,
Any luck on when this new API would be available?
Cheers.
Iram
Hi,
this would be a great feature for server and client side api selectQuery's.
any update on when this would be implmented?
Regards,
Jorrit.
Hi,
Sorry for delayed response. This is still in backlog. Will let you know about fix release version soon.
Regards,
Ranjana Sinha