You need to sign in to do that
Don't have an account?
Lakshmi Gupta 4
Custom table having three lookup relationship to contact table.
Hi,
I have created a custom object Attendance__c with three fields called contact__c, manager__c, manager's manager__c. They are all lookup relationship with contact object. I want to get these three names in my apex code. I'm able to get the contact__c with the below:
Select contact__r.name from attendace__c. How can I get the names of manger and manager's manager which is lookup relation to contact object? Thanks for your help!!
I have created a custom object Attendance__c with three fields called contact__c, manager__c, manager's manager__c. They are all lookup relationship with contact object. I want to get these three names in my apex code. I'm able to get the contact__c with the below:
Select contact__r.name from attendace__c. How can I get the names of manger and manager's manager which is lookup relation to contact object? Thanks for your help!!
If each manager is also a contact that is set in the creation of the Attendance record
If we are talking about doing a automated related lookup based on the first contact record, then a different story.
Regards
Andrew