Reply
Contributor
rpp0910
Posts: 5
0

Chatter feed on Account owner

Hi,

 

  We have a contract custom object with account as parent.

If the contract end date is about 180 days, a chatter feed should be placed on the account owner chatter page.

Any help please.

 

Thanks in advance.

 

Regular Contributor
piyush parmar
Posts: 32
0

Re: Chatter feed on Account owner

 

 

For that you have to create scheduler calss with 180 days end condition.

 

And under the schedular put chatter feed code

 

like: 

FeedItem post = new FeedItem();
    post.ParentId = Contact.Account__c;
    post.Title = 'XYZ';
    post.Body = 'XYZ';
    insert post;