function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
The EmailStatus object is not queryable directly, but it can be queried indirectly from Leads and Contacts.
https://trailblazer.salesforce.com/ideaView?id=08730000000ZzZUAA0
Try to check below workaround but not sure if this will work.
https://salesforce.stackexchange.com/questions/105824/apex-html-email-status-to-get-open-count
Hope this helps..
Thanks,
All Answers
Unfortunately, this is not possible, Kindly review below Idea link and vote for this feature
https://trailblazer.salesforce.com/ideaView?id=08730000000h3huAAA
Thanks,
https://trailblazer.salesforce.com/ideaview?id=08730000000Bp2OAAS
Please vote it.
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.
The EmailStatus object is not queryable directly, but it can be queried indirectly from Leads and Contacts.
https://trailblazer.salesforce.com/ideaView?id=08730000000ZzZUAA0
Try to check below workaround but not sure if this will work.
https://salesforce.stackexchange.com/questions/105824/apex-html-email-status-to-get-open-count
Hope this helps..
Thanks,
SELECT id, name, ( SELECT id, taskId, createdDate, firstOpenDate, lastOpenDate, timesOpened, emailTemplateName FROM EmailStatuses ) FROM Contact
My question is: this returns every single contact. Is it possible to edit the query so that it only includes contacts that were sent a specific email?