function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rpp0910rpp0910 

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.

 

piyush parmarpiyush parmar

 

 

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;