Is there any way to publish CallLog object into chatter feed (for case object) ?

I read about CaseFeed object but it's read-only.

I'm using developer version with cloud service.

  • Do you mean you what to post CallLog detail to case feed? – AtulRajguru9 Apr 11 '17 at 12:47
  • Yes, i want to post calllog detail to case feed. – Sharpek Apr 11 '17 at 12:51

You can use the ConnectApi to post feed to chatter.

ConnectApi.FeedElement feedElement = ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), '0F9d0000000TreH', ConnectApi.FeedElementType.FeedItem, 'On vacation this week.');

for more details on ConnectApi please refer: https://help.salesforce.com/articleView?id=activating_computer.htm&type=0&language=en_US

The other piece that you will need is trigger to initiate the posting for that you can refer this answer:

Workflow Rule on Case Comment, Fire Action on Case

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.