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

  • How can I send email whenever a user posts a chatter post?

  • Naman

    Member
    April 30, 2016 at 6:11 pm

    I need to implement a functionality to send an email whenever a user posts a chatter post in salesforce. How can I do this?

  • 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.
    }

     

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos