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
SFDC0539SFDC0539 

Access field id for standard objects

Hi,

 

How to get the field id's for standard objects. I need to access the field ids for contact object.

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Kunal01Kunal01

Hi SFDC,

 

Hope you are looking for this...

 

http://salesforce.phollaio.com/2007/04/02/how_to_obtain_a_field_id/

 

 

Thanks,

Kunal.

All Answers

Vishal TCSVishal TCS

Hi ,

      There is good post by Jeff Douglas to get Field Info from Metadata. Hope it will work for you. Here is a link.

http://blog.jeffdouglas.com/2011/10/20/getting-salesforce-field-metadata-the-easy-way/

 

Thanks

~VP

Kunal01Kunal01

Hi SFDC,

 

Hope you are looking for this...

 

http://salesforce.phollaio.com/2007/04/02/how_to_obtain_a_field_id/

 

 

Thanks,

Kunal.

This was selected as the best answer
SFDC0539SFDC0539

Thank you

Teach_me_howTeach_me_how

Hi just want to ask  what scnerio might you need the field's id? this maybe useful to me in the future.. thanks

SFDC0539SFDC0539

Hi ,

 

 

I have a requirement where i need to customize the Clone functionality. When a record is cloned a few fields need to be left blank while cloning so for that i needed the field ids. 

 

I created a custom button in which i did URL hacking in this way:

 

https://na5.salesforce.com/{!Contact.Id}/e?00N90000001uQcw=&name_lastcon2=&clone=1&retURL=%2F{!Contact.Id}

 

Thanks..

Teach_me_howTeach_me_how

is that mean field id should use as parameter name on the url instead of field name?

SFDC0539SFDC0539

 

 

Yes it only recognizes the field Id and not the field API name.