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
StellarStellar 

How to get standard field IDs?

Hi,

Could you help instruct how I could get ids for standard fields, instead of their API names. For example, when you inspect the account name field on a html, the id shows as "acc2". The "acc2" is what I want, but is it possible to retrieve them all in one time? 

Thank you very much!

All Answers

Niraj Kumar 9Niraj Kumar 9
Hi,

Go to workbench/ Developer console and write down the soql queries.
I am writing Soql Queries based on 
 Select ID, Acc2 from Acoount.
Hope this will help you.

Thanks.
niraj Kumar
 
Amit VaidyaAmit Vaidya
Hi Stellar,

You can get it by generating a WSDL which will give you a complete details of all objects in your org. including field ID.

To do this, go to Setup->Develop->API and select the "Generate Enterprise WSDL".

Thank you,
Amit
StellarStellar
Hi Amit Chaudhary 8, Niraj Kumar 9 and Amit Vaidya,
Thank you all for replying, but the answers are not what I exactly want, so I decide to summarize a list as Amit Chaudhary 8 referenced.
Still, thanks a lot!

Best regards,
Stellar