You need to sign in to do that
Don't have an account?
Rajeev Satapathy
Post custom message in chatter
I want to post a custom message on behalf of the record owner when a condition is met .The message would have the object details and lookup fields present. I have to turn off standard chatter feed to post a custom message.
Any kind of code snipet or guidance ???
Any kind of code snipet or guidance ???
Every object is having its respective feed object to display the feed.. since you are planning custom feed you need to design the custom object which functions same as Standard feed.
trigger myFeedItem on FeedItem(before insert){
//set body of the item
for(FeedItem fi: trigger.new){
fi.Body='you message';
}
}