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
Rinigrace MekalaRinigrace Mekala 

Updates on Chatter Feed of User

Hi All,

How to post related object data of a contact record on the User's feed, who is following that Contact?

Any kind of suggestion is appreciated.

Thanks in advance,
Grace
Neil HayekNeil Hayek
Hi Rinigrace.

Could you please clarify your use case?

If your goal is to post on a user's feed if information on a Contact is updated, a solution that comes to mind is to use a trigger.

A trigger on Contact update could query the EntitySubscription table to find out who is following the contact, and then create a feed post on the user's wall.

One thought is this may have issues with data security, because a post on a user's wall would potentially be visible to the entire org, and so you'd have to consider what information you post.

If this isn't the use case you had in mind, please let me know.