Activity Forums Salesforce® Discussions When i am sending Email from Batch Class, why am i not getting email tracking in HTML Email Status?

  • Rajan

    Member
    March 21, 2018 at 10:23 am

    Hi parv ,

    I think you need to check your code . check SaveasActivity as is true or false in your code . It is basically by default true so you do not write in your code .

     

    Thanks !

  • PRANAV

    Member
    March 21, 2018 at 10:52 am

    Hi Parv,

    First, for tracking Email you have to enable its setting by following the below steps:

    • From Setup, enter Activity Settings in the Quick Find box, then select Activity Settings.
    • Select Enable Email Tracking.
    • Click Submit.

    Second, please check your environment in which you are running your code because if you are testing it in sandbox then there might be some issues as per the recent Salesforce knowledge articleemailtrack

    As there's no fundamental reason why triggers would track the email while batchable classes would not.

    Third, make sure you use this setSaveAsActivity(true)  or by default its True if you don't define this.

    Hope this helps you.

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos