function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rajuraju 

describeLayout() gives reference-key values and not display-values

We are using 7.0 version of API and also Ajax Toolkit.
 
In order to custom display the Opportunity object, we are trying to retrieve the Layout Specification using describeLayout() method and that seems to return the reference-key-ids for columns such as 'AccountID', 'CampaignID', 'OwnerID', etc. However, we need to make other API calls to get the string values to display these parameters. We are just wondering if there is any way to get all these details in a single call (less calls better).
 
Please let us know.
 
Thank you
DevAngelDevAngel
No, that would require a join syntax that we don't currently support.  If you are navigating several records in the scontrol, I would recommend caching "referenced" items in an associative array keyed on the id.
rajuraju

Thank you again, Dave. As the LayoutSpecification also contains other object-reference-keys, it might not be a good idea to call multiple APIs for getting those objects (besides Opportunities). Thank you for your quick response on this too.

Appreciate that.