1

i have to get those chatter items in which a user name is mentioned.i make a trigger in FeedItem and FeedComment.but and see Body content if it contains @user.Name().but i saw in chatter when i post some chatter like @Ritesh Mehandiratta Hello.feed item will be posted but no link corresponding to to user.when i post it like @[Ritesh Mehandiratta] and doesn't select any user from dropdown still feed will be oposted but no link to user profile on chatter post.When i select a user and then [Ritesh Mehandiratta] appears then i post then a link appear in feed post for user's profile.i want to apply my action when link of user's profile appears in chatter post.but body of all the elements is same.How to differentiate between them ??

closed as off-topic by Eric, Ratan Paul, crmprogdev, Himanshu, Vamsi Krishna Aug 7 '16 at 16:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – Eric, Ratan Paul, crmprogdev, Himanshu, Vamsi Krishna
If this question can be reworded to fit the rules in the help center, please edit the question.