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
sbaa2012sbaa2012 

How to get the field's ID

when we modify a customized application, we can see the field id in the html page

such as "https://ap1.salesforce.com/00N90000002m2KA?setupid=CustomObjects"

but my question is how to get such id "00N90000002m2KA" from API level by field name?

 

because the http POST request only have such keyword,I want to know what field is it

 

Thanks


Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox

Yes, you'd have to do "screen scraping" or HTML parsing. There's no API for determining the internal field ID.

All Answers

SabrentSabrent

Not sure if I understand your question correctly but hoping this helps else ignore. 

 

AmitSahuAmitSahu

What I think is you are looking for an automated process of getting the ID of a field...... But the posts are pointing towards standard object and fields.. 

 

You need it for custom object and/or custom fields.....

sbaa2012sbaa2012

yes,so could you tell me what is your solution?

I need an automated method (means API can work) to get custom fields' id

 

current solution , I need write a program to parse the html page?


sfdcfoxsfdcfox

Yes, you'd have to do "screen scraping" or HTML parsing. There's no API for determining the internal field ID.

This was selected as the best answer