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
adsfasdfasdfasdadsfasdfasdfasd 

Given an SObject, how do I determine the (plural) label for that object?

I have a custom object Custom_Object__c. The singular label for this object is "Custom Object" and the plural label is "Custom Objects".

 

How do I derive this label programmatically?

 

TIA,

 

John

SuperfellSuperfell
use the describeSObject(s) api call, its repsonse include the both the sinular and plural labels.