+ Start a Discussion
Sumit Kumar Singh 9Sumit Kumar Singh 9 

Get all the lookup fields (lookup to Contact) of a object.

Hello Developers,
Suppose I have a custom object 'XYZ'. This object has many fields lookup to contact and User Object.
I want to get list of  all fields which has lookup to Contact object.
Balayesu ChilakalapudiBalayesu Chilakalapudi
Try using Schema Builder.   Under objects list, search for contact, it will show you all the lookup relationships to and from the contact object.
 
Sumit Kumar Singh 9Sumit Kumar Singh 9
Bro, 
I want list of those fields in APEX controller.