function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael MMichael M 

Send report of campaign clicks 3 days after campaign sent

Hello, I have a task to send out an email with campaign results (number of clicks, number of times opened, etc) , 3 days after any campaign is sent. Is this possible and what would you recommend?
Best Answer chosen by Michael M
VinayVinay (Salesforce Developers) 
Not 100% sure but it might be possible with apex,  however you would have a limitation EmailStatus cannot be used by portal users and they do not have access.

Found below references which can give additional details.

https://salesforce.stackexchange.com/questions/105824/apex-html-email-status-to-get-open-count
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_emailstatus.htm

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Michael,

This might be OOB functionality to sent email based on clicks and the number of times opened.

Thanks,
Michael MMichael M
Hi Vinay, how is it done? 
VinayVinay (Salesforce Developers) 
Check below link,  however back end fields cannot be used to match criteria and trigger email.  Maybe you need to build custom functionality which might be bit complex.

https://www.salesforceben.com/how-do-i-track-email-opens-clicks-in-salesforce/

Thanks,
Michael MMichael M
Thank you-- Is it possible to trigger this with apex? I see that there is an EmailStatus class, but not sure exactly how to use it. 
VinayVinay (Salesforce Developers) 
Not 100% sure but it might be possible with apex,  however you would have a limitation EmailStatus cannot be used by portal users and they do not have access.

Found below references which can give additional details.

https://salesforce.stackexchange.com/questions/105824/apex-html-email-status-to-get-open-count
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_emailstatus.htm

Thanks,
This was selected as the best answer