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
Vetriselvan ManoharanVetriselvan Manoharan 

Chatter email notification on each post

Hi Guys,
I have enabled chatter notification on each post to a group in the settings. But the problem is I get email only on commenting on the post, but not on new post. Can anyone help me with this?

Thanks,
Vetri
NagaNaga (Salesforce Developers) 
Hi Vetriselvan,

User-added imagePlease see the link below

http://salesforce.stackexchange.com/questions/39952/email-chatter-followers-on-every-post-to-record

Best Regards
Naga Kiran
Sumitkumar_ShingaviSumitkumar_Shingavi
Hello,

You need to create a trigger on "FeedItem" object and on after insert you will send an email to required audiance. Here is small snippet of code:
trigger FeedItemTrigger on FeedItem (after insert) {
    for(FeedItem fitem : Trigger.New) {
        //fitem.ParentId is the id of user who posted the feed
        //fitem.Title
        //fitem.body
    }
}

For more information like other fieles on FeedItem object; you can look at this: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_feeditem.htm

Hope this helps!

Thanks,
Sumit
Vetriselvan ManoharanVetriselvan Manoharan
Hi,

Thanks for your reply. But there is an option in chatter to email notification on each post right? What is purpose of it?

Regards,
Vetri
Gabrielle Boeri-CharlesGabrielle Boeri-Charles
Hi,
Does this type of notification allows the user receving it to answer the post directly by replying the email?
Thanks!