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
lalitha_sfdclalitha_sfdc 

How to find the object based on the field name?

Hi,
I have the field name and I need to find the object to which it belongs to?
example:
field name: Status
I need to find the object to which this field belongs?
Ashish_PandeyAshish_Pandey
There's no straightforward way to find out which objects this field belong to. WIthout knowing more about the field than just the name, you can't since many different objects have identical field names.
The easiest way would be to go to each object's fields information page and find these fields under the custom fields section. 

For standard objects: Setup ->Customize -> Object Name -> Fields
For custom objects: Setup -> Create -> Objects -> Find the object name
Dhanasekar KDhanasekar K
Yes we can achieve this by using Tooling Api and Meta data. 
If you know the field name and need to identify the object use the following query.
Select Id, Namespaceprefix,developername,TableEnumOrId from customfield where developername LIKE ‘%(FIELDNAME)%’
Note:
Ensure Checked Tooling Api in Query editor. cheers (y)