You need to sign in to do that
Don't have an account?

Reg: Look up field names
Hi,
I have 2 objects E__c, Company__c.
I created a lookup on E__c which is related to Company__c.
E__c contains the fields Name(Standard), CompanyName__c (Lookup & custom field).
When i try to print the field names of E__c, it gives field names like,
Name,ownerid,createdbyid,modifiedid,CompanyName__c.
Actually i have 2 fields name, Companyname__c in E__c object.
But here it shows 5 field names including ownerid,createdbyid,modifiedbyid.
Is ownerid,createdbyid,modifiedbyid are belongs to either E__c (or) Company__c object.
please reply your answer.
Regards:
Ramya
ownerid,createdbyid,modifiedid fields are standard fields of each object in salesforce. when we create an object these fields are created by default.
If you want to fetch custom fields please see the code below.
Please let me know if there is any issue.
Regards,
devendra