You need to sign in to do that
Don't have an account?
Jimmy Mao
Contact.SObjectType
hi,
Contact is regarding as a standard salesforce object, like Account, Lead etc. But when I try to get Contact.SObjectType, it shows error " Error: Compile Error: Invalid field SObjectType for SObject Contact". I tried other standard object Account and Lead, Account.SObjectType Lead.SObjectType, they won't return any error.
Is there difference between Contact with other standard object, or there would be some kind of version support this?
Contact is regarding as a standard salesforce object, like Account, Lead etc. But when I try to get Contact.SObjectType, it shows error " Error: Compile Error: Invalid field SObjectType for SObject Contact". I tried other standard object Account and Lead, Account.SObjectType Lead.SObjectType, they won't return any error.
Is there difference between Contact with other standard object, or there would be some kind of version support this?
System.debug('contact type:' + contact.SObjectType);
It's ok when I debug on execute window, also ok in a new class. There's the managed class associated with a package, and the error turns out there. Anyone knows something about that?