2

I was able to create an automated FeedItem trigger that fires and automatically replies (from a dummy user) to a user when he/she makes posting.

I did not get the typical "commented on your post" emails from Chatter. Is there a way to enable this in my code?

Best, Eric

6
  • Did you look in the Connect API?
    – crmprogdev
    Commented Jun 25, 2015 at 14:52
  • Can you post your trigger code? The Connect API won't work because it only supports posting as the current user.
    – alouie
    Commented Jun 25, 2015 at 17:07
  • You could also try using a @future method to call the commenting code asynchronously. It may be the case that the comment needs to happen in a separate transaction in order to generate the email notification (just a guess).
    – alouie
    Commented Jun 25, 2015 at 17:10
  • @alouie it is an After Insert Trigger
    – Eric Luu
    Commented Jun 26, 2015 at 3:40
  • What technique are you using to run this as a different user? A typical after trigger that inserts a FeedComment would run as the current user and would therefore not notify the user because it is a comment on their own post.
    – Rick
    Commented Jun 29, 2015 at 23:01

0

You must log in to answer this question.

Browse other questions tagged .