+ Start a Discussion
Malik Butler 5Malik Butler 5 

Activity Feed

I created an apex class that shows related object activity on an account page. I am not able to get chatter feed though. I also am able to get one object but I'd like to add opportunities and work orders. Any ideas on what I should do?
AnudeepAnudeep (Salesforce Developers) 
Hi Malik, 

Are you using the chatter: feed component or doing it through the apex
 
public void postFeed(){
FeedItem post = new FeedItem();
post.ParentId = userID;
post.Body = body;
insert post;
}
}

What you are looking for is an idea today