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
Gunners_23Gunners_23 

How to get the id of Standard field

Hi all,

I want to pass the id of the standard field to VF page. How to fetch the id of standard field?

IspitaIspita

Hi,

What are you actually referring to:-

  • API name of a field ?
  • Or record id of an instance of an object? if looking at mergefield then {!objectname.id} or in sake you want it in query look at schema explorer in ecllipse you will get the exact field name 

Hope this helps...

Gunners_23Gunners_23

Hi Ispita,

I want the id of standard field, not the ID of the instance record.

 

Suppose if you click on the any custom field of an object, in the URL there will be 15 digit ID for that custom field, similarly i want the ID of the standard field.

IspitaIspita

For that  I think you have go to the "Metadata API" route , as that is the construct to extract information regarding schema...

 Also you can try the describeobject() function route ....

Hope this helps...

Gunners_23Gunners_23

Hi,

 

I even checked using describeSObject function in AJAX TOOLKIT but there also i couldn't find the field ID.

Is there any other workaround for generating a report by passing the standard field values as filters for report??

 

Thanks in Advance,

 

IspitaIspita

In that case you will have to take the "Metadata API" for this purpose..