Activity Forums Salesforce® Discussions How can I send email whenever a user posts a chatter post?

  • Utsav

    Member
    June 2, 2016 at 10:56 am

    Hi Naman

    You can try writing a trigger on Feeditem object with which you can send an email whenever a feed has been posted on chatter object.

    Following code snippet may help:

    trigger onFilePostCreation on FeedItem (after insert) {
    // Get the new feed item
    // Paste your code here for sending mail using salesforce email service class.
    }

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos