0

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.

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

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .