You need to sign in to do that
Don't have an account?
eralo
Why does Chatter format messages as "<user A> to <user B> <Message>"
We're creating a Chatter feed using our App by putting a trigger on an object but in some cases the feed is formatted as "<user A> to <user B>: <Message>" instead of just "user B>: <Message>.
User B is the owner of the object and we're posting the message into their Chatter feed.
User A is the authenticated user (through the API) that caused the trigger to execute.
Is there any way to avoid this?
Hi eralo
Looking at the Introduction to Chatter article, I think what's happening is that User A is creating a FeedComment. What code are you using to update the status? Can you show it?
Jon
Can you show me the code (or a snippet) from your trigger? Are you changing a field which is being tracked for changes or are you inserting a FeedPost record?
Typically a FeedPost would be a message from 1 user to another (or to a record) hence the from / to syntax.
Depending on what you're doing in the trigger, you might prefer updating a field which is being tracked. It might be helpful to hear more about what you're implementing.
Here is the code that is creating the FeedPost. The record creating the trigger action is created via the api by a user <user B> that could be different than the ParentId <user A> we are using, but we are not referencing the created user <user B> anywhere in the code.