You need to sign in to do that
Don't have an account?
lakshman.matti
Chatter post on case record
Hi Everyone,
i have scenario . can you suggest me how to write trigger.
scenario is i have a standard object case. i have created a custom field which is of type checkbox.
i have created a record. on the record detail page we can post some comments using @mention xyz user.
when some one is posted comments using @mention username(owner of the record), i want to make that checkbox true.
what is relationship between case and casefeed.
can some one tel me how to write trigger for this.
Thanks
Lakshman
i have scenario . can you suggest me how to write trigger.
scenario is i have a standard object case. i have created a custom field which is of type checkbox.
i have created a record. on the record detail page we can post some comments using @mention xyz user.
when some one is posted comments using @mention username(owner of the record), i want to make that checkbox true.
what is relationship between case and casefeed.
can some one tel me how to write trigger for this.
Thanks
Lakshman
Please find the below code which is updated to check if the owner of Case is equal to User inserts the Feed,
Thanks,
Vinoth
All Answers
Please find the below code which is for updating the check box, if Feed entered by user contains '@'.
If you would like to write a trigger for FeedComment, you have to write a trigger for FeedComment.
Please find the below link for more information on FeedComment.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_feedcomment.htm
Thanks,
Vinoth
Thanks for the code. and i want to check one more condition here.
the criteria is i want to enable check box only if any user other than the owner of that record, posts comment on the record.
For example. i have created one record.so i'm the owner of that record.
say you are posting some comments on that record .so you are the another user.when you are posting u have mentioned my name on the comment using @mention notation.(Ex:@Mention Laskhman).
how to check this condition.
Thanks
Lakshman
Please find the below code which is updated to check if the owner of Case is equal to User inserts the Feed,
Thanks,
Vinoth