0

When I am Inserting feed item records through dataLoader, the standard salesforce chatter email is not firing.

But When I insert a record through UI, I am getting the mail. Also, the email is coming when doing through the Batch Apex.

I could not find the root cause of this or I am missing any setting for the same. Correct Me..!!

1
  • Is the CreatedById and InsertedById same when you are trying to load the records?
    – Jayant Das
    Commented Sep 4, 2018 at 14:24

1 Answer 1

3

Referring to the Knowledge Article Chatter post does not trigger Chatter email notifications , it is the expected behavior not to trigger emails during data migration.

This feature is available for data migration purposes so that when you migrate posts from an external or legacy system, the chatter users are not sent emails for the migrated posts. This can be accomplished by setting the InsertedById to a different value than the CreatedById.

In your case, I assume the InsertedById and CreatedById are different and thus no emails are triggered. The article further mentions, if you still want to trigger emails, you can do so by making sure that both the ids are same.

If you want the Chatter post to send notifications to users that have their account configured to receive notifications, make sure while inserting Chatter posts or FeedItems the CreatedById == InsertedById (that is these fields must not be different).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .