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
bnuckelsbnuckels 

Metadata for field unique ID's

Is there any way to obtain metadata on the unique identifiers for my salesforce objects (specifically case fields)?  Since every object in salesforce has an immutable unique identifier, there are cases where it would be nice to reference them via the api using this identifier.  If you aren't sure what I am talking about, it is the identifier that will be found in the URL when accessing any kind of record or field def, or if you generate the Web to Case sample HTML, you will also see them referenced there in the HTML and they look something like this:

00N30000000lTGs

Thanks
SuperfellSuperfell
Nope, that's not exposed, everything can be done via the fields name in the api.
cgosscgoss
We have a case where we'd like to use the metadata API to get the field ID, since that is referenced in s-controls to pre-set custom fields in URLs. Although this is not an officially 'supported' feature, there are no workarounds, and it is extremely prevalent in the community.

Our problem is that when we migrate s-controls from one org to another, the field Ids do not change, and must be changed by hand. If we could get API access to the field Id, we could write a script that will do some find/replace magic and fix these references.