You need to sign in to do that
Don't have an account?
Chermadurai Bala
Unable to Use the fields LastModifiedDate and createdDate for Object "Email Message" in my Class
I Enabled audit fields , Even unable to Save my class when using LastModifiedDate and createdDate for Object "Email Message".
The Error Message is :
Error: Compile Error: Field is not writeable: EmailMessage.LastModifiedDate at line 159 column 38
The Error Message is :
Error: Compile Error: Field is not writeable: EmailMessage.LastModifiedDate at line 159 column 38
LastModifiedDate and created date is read only fields and Salesforce will generate it automatically at the time of DML.
Thanks ,
Raj
Create new fields in the sObject and use it.