Skip to main content
10 votes
Accepted

Why is CaseFeed.CreatedById Polymorphic?

Looks like before Spring 12, CreatedBy field, on some objects, could be linked with User or SelfServiceUser object. Refer to screenshot below obtained from a 2010 blog post (link to blog is no longer ...
Shamina's user avatar
  • 4,295
9 votes

Test Class for QuickAction.QuickActionDefaultsHandler

In Summer'16 release Salesforce added new method which helps with testing classes implementing QuickAction.QuickActionDefaultsHandler interface: Test.newSendEmailQuickActionDefaults(contextId, ...
neff's user avatar
  • 1,406
5 votes

Why are Lightning Actions for Case Object showing in Feed?

This is a expected behaviour from salesforce when feed tracking is enabled for cases or work orders, the page-level action menu on those records contains only custom buttons and supported standard ...
sanket kumar's user avatar
  • 15.4k
5 votes
Accepted

How can I make calls related to a case display in its Chatter feed?

You can do this in Apex if you fill out all the right fields. Task t = new task( WhatId = someCase.Id, // Case to log against CallObject = 'Call Center To Log To', // Gotten from CallCenter ...
sfdcfox's user avatar
  • 495k
3 votes

How to display a image in case feed?

In case if image has been added to Rich Text Area field, its body will be stored as ContentReference record. If you look at rich field, format will be like: <img alt="User-added image" src="https:/...
Ilya Lepesh's user avatar
  • 4,125
2 votes
Accepted

How is the "From" field populated in the Case Feed Email (Answer Customer) Publisher?

From Our support teams need to send from different email addresses: (my emphasis) The case feed setting "Specify From Address(es)" allows a default address to be specified for the case feed. If ...
Daniel Ballinger's user avatar
2 votes
Accepted

How can I have the addressing section of Case email open by default?

That is Salesforce Out-of-box functionality where Email in Feed based layout will be displaying like that because in the Feed View settings of the Page Layout Allow Collapsible Email Header option in ...
Santanu Boral's user avatar
2 votes

How can I make calls related to a case display in its Chatter feed?

There doesn't seem to be a way to create a "Call logged" feed item on the Case, if you are not creating it from UI (or logged through CTI calls, details below). Based on some quick tests below are ...
Jayant Das's user avatar
  • 30.6k
2 votes

How to get Task to appear in Case Feed

Caveat: I can't reproduce the exact behavior you're describing; I do get feed posts in most cases, pun intended. Here's what I found. There's some specialized behavior around FeedItem posts linked to ...
David Reed's user avatar
  • 93.2k
2 votes
Accepted

Case feed option is not displayed in case page layout

When you create a new page layout, you need to select the option for "Feed Based Layout". You can't change an existing layout to be feed-based. Once you've created the feed-based layout, you'll see a ...
Charles Naughton's user avatar
2 votes
Accepted

What populates "Text Posts" in the Lightning Case Chatter Feed?

It is FeedItem object of Type TextPost. You can refer to How to track deletion of Files (Content Documents) in Case Feed? where you will get good idea on how to create the feed programmatically. For ...
salesforce-sas's user avatar
2 votes
Accepted

How to track deletion of Files (Content Documents) in Case Feed?

You can write trigger on ContentDocument in which you need to get reference to ContentDocumentLink as it will have the information - with which objects that document has been shared with. Using the ...
salesforce-sas's user avatar
1 vote

How to access Owner of Parent Record of FeedItem

Your proposed solution appears quite correct, and the formulation you have does not qualify as a query in a for loop. Iterating over a query result like that is a common and expected pattern that does ...
David Reed's user avatar
  • 93.2k
1 vote
Accepted

How to link to SObject within Case Feed in console-friendly fashion?

You could try the following insert new FeedItem ( Body = URL.getSalesforceBaseUrl().toExternalForm() + '/' + caseId, ParentId = someCaseId, Type = 'TextPost', Visibility = 'AllUsers'); ...
cropredy's user avatar
  • 72k
1 vote
Accepted

How to solve : FATAL_ERROR System.FinalException: Cannot modify a collection while it is being iterated

Your loop is trying to add new (potential duplicates) to the List of Strings that you are currently iterating over, this is not allowed. To build a List of all addresses you can swap the List access ...
TSmith's user avatar
  • 5,052
1 vote
Accepted

Do Cases FeedItem (Ex. TextPost, Activities) count against Salesforce storage limit?

The Task/Event objects (collectively, Activities) count against storage, but Chatter Feed Items of all types do not. There are, however, separate Chatter Allocations and Chatter Limits you should be ...
sfdcfox's user avatar
  • 495k
1 vote
Accepted

How to get access to attachments in Case Feed Item using Rest API

It is easy once you understand the Data Model. You have the CaseFeedItem already in your system. Use this to Query for the Feedattachment. This can be done through the REST API /services/data/v51.0/...
Mohith Shrivastava's user avatar
1 vote
Accepted

Service Cloud - dealing with automatic/out-of-office replies for cases

While omni-channel queue based routing takes care of assigning the cases to available agents, the creation of case from an incoming email is still handled by email-to-case setup (related routing email ...
arut's user avatar
  • 5,301
1 vote
Accepted

Understanding CaseFeed

The documentation on CaseFeed is a bit hard to find in the Salesforce Objects Reference Guide as it is under StandardObjectNameFeed ParentId - points at the Case RelatedRecordId - ContentVersionId of ...
cropredy's user avatar
  • 72k
1 vote

Delete caseFeed when email message is deleted

You could query FeedItem record based on Parent Id and delete that delete ([SELECT Id FROM FeedItem WHERE ParentId =: <your email record Id>]);
Santanu Boral's user avatar
1 vote

Case comments and case custom buttons in the Lightning environment

This is not possible (for all objects) - these are the Activity buttons and they are more like tabs in LEX and will stay in the Activities standard component - you should see it in the app builder: ...
Itai Shmida's user avatar
  • 5,035
1 vote

Feed Attachment to Content Version - Retrieve ContentVersion.PathOnClient

I recommend you add a query. You can use a simple grouping strategy so that you have the corresponding records for each feed: List<CaseFeed> feeds = [/*query from OP*/]; Set<Id> feedIds = ...
Adrian Larson's user avatar
  • 150k
1 vote

Is it possible to create case feed filters in Napili Communities template

I believe this is controlled by Feed Tracking. Go into Setup: Customise > Chatter > Feed Tracking Select the "Case" Object, and you'll see a number of fields enabled for tracking. These are the ...
Rob Macintosh's user avatar
1 vote
Accepted

Publisher actions not available in case feed for service console

I actually figured this one out if anyone is interested. The items you create in the case feed for Service Console can be found in the "Quick Actions" section. They must be placed into the "Quick ...
user30816's user avatar
1 vote

Automatically expand publisher when directed to Case Feed from VF page

Create a new VF page that simply renders the standard layout using <apex:detail>, but has some additional logic that inspects the URL parameters to determine if the publisher should be expanded (...
Mike Ginou's user avatar
1 vote

Can't add ContentPost type FeedItems on cases from customer community user

take A look at the FeedItem doc - NetworkScope and Visibility fields : you should Specifies whether this feed item is available to all users or internal users only.
yuval boim's user avatar
1 vote
Accepted

Display rich text in the feed

Note: This feature has now been delivered... ...in Classic: [Winter '16 Release Notes] ...and in Lightning Experience: [Spring '17 release notes]
Shane Steinfeld's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible