You need to sign in to do that
Don't have an account?
ringneng
Adding a custom field to EmailMessage SObject
Hi guys, I'm working with the API (PHP toolkit!), and on my page I'd like a list of emails that some users receive from Salesforce users.
To do this, I intended to create a IsRead__c custom field on my EmailMessage object, and take it from there. I don't see anywhere where that object could be modified. Does anyone know where I need to look or a better way to achieve this? Thanks!
Hey ringneng,
It is not possible to create custom fields for EmailMessage object. A workaround could be implemented based on the need to have this custom field.
Thanks.
All Answers
Hey ringneng,
It is not possible to create custom fields for EmailMessage object. A workaround could be implemented based on the need to have this custom field.
Thanks.
You're right. If it'll help anyone, I created a custom object and created a trigger that would copy the same information from EmailMessage right after the email was sent. Very simple. this is the trigger.
trigger Avantbox_Create_CP_Email on EmailMessage (after insert) {
Customer_Portal_Email__c CP_Email = new Customer_Portal_Email__c();