Email is not firing for feeditem records inserted through DataLoader
When I am Inserting feed item records through dataLoader, the standard salesforce chatter email is not firing. But When I insert a record through UI, I am getting the mail. Also, the email is coming...
View ArticleHow to count Chatter posts in SOQL?
Is there a way to count chatter posts for a specific record? I tried simple query: SELECT COUNT() FROM FeedItem WHERE Type = 'TextPost' But this doesn't work in Apex since it throws an error...
View ArticlePrefill data into FeedItem body
I have a problem, and i dont know how to make it. I need to put data into FeedItem on Case which is sent as Type TextPost. It needs to show first name and last name of the account person which is...
View ArticleCase from Chatter question isnt working in lightning
I have strange issue happening on my instance I have case created from chatter question in the community (by process builder + quick action) yet when trying to reply from the chatter in the case I get...
View ArticleApex - Accurately Identify users tagged in Chatter comments and set them as...
This question already has an answer here: FeedItem Trigger - Parse Mentions? 2 answers Retrieve UserId of @mention user from chatter post in Apex 1 answer I already know how to set someone to...
View ArticlePosting Badge Information to Chatter
I'm trying to do a Thanks post via Apex. More specifically, I want it like this : These are the steps I have taken to be able to post a Badge. 1. Created a WorkBadgeDefinition Object 2. Connected the...
View ArticleUpdate FeedItem Body
I have very simple version of a class that needs to update body of FeedItem as part of a test class. updateFeed() is throwing this error message: "System.SObjectException: Field is not writeable:...
View ArticleCreate TopicAssignment in apex
I am attempting to automate some chatter stuff. What I want to do is use apex and create a new chatter feeditem, attach it to a group, and then assign a topic to it. I am doing this for a community...
View ArticleShow Chatter feed for Knowledge articles in the Napili template
I am trying to display feeds for articles in my Napili template using the standard record feed lightning component, but for knowledge articles, it never loads. It works properly for custom objects....
View ArticleCreating public ContentVersion via REST API on behalf of someone else fails
I am creating simple interface for posting new Case feed posts (FeedItem objects). These posts are created by admin on behalf of other users (altering the CreatedById field). I'd like to support also...
View ArticleTitle attribute of in FeedItem is replaced by null
I posted several FeedItems using Salesforce Rest API but the title attribute of <a> tags in rich texts were not working correctly for me. For instance, POST /sobjects/FeedItem/ { "ParentId":...
View ArticleTrigger when record has updated after chatter post through feeditem class to...
A MAIN GOAL : TO ALARM ON EACH USERS IN A GROUP FOR RECORD UPDATE (NO PLATFORM EVENTS) API 44 or higher Hello i want to post a article to chatter group members, but i tried to put group id to the...
View ArticleEmails being sent through the Feed are not displaying the new Email Body in...
When a User sends an email through the Feed on a Case, the original email body is displayed in the feed, however the new email contents sent by the User does not display. In the Screen shot below...
View ArticleUnable to write BestCommentId on FeedItem in test class
I am trying to write a test class to test an Apex class that uses FeedItem object. The Apex class checks if the FeedItem record has a BestCommentId and does some actions. A snippet of the test data...
View ArticleSearch in All Fields plus topics for feeditems
I currently have an SOSL query [FIND :finalSearchText IN ALL FIELDS RETURNING FeedItem(Id, Title WHERE Type = 'QuestionPost') LIMIT 10]; This works great for searching the feed item title and body....
View ArticleHow can I mark 'Best Answer' through ConnectApi?
How do I mark an answer as Best Answer through ConenctApi? I tried setting bestAnswerId of ConnectApi.QuestionAndAnswersCapabilityInput but it does not mark the answer as Best Answer....
View ArticleInvoking trigger when an answer is marked as Best Answer in Chatter
I am trying to invoke a trigger when an answer is marked as 'Best Answer' in Chatter Question. I tried a trigger on FeedItem and FeedComment objects, but the triggers were not invoked when I mark an...
View ArticleChange FeedItemPost CreatedById using ConnectApi
I want to post chatter items via Apex with a link attached and an @ mention. I've been able to figure out how to attach the link and @ mention through research. The next step to finishing this is to...
View ArticleAttachments in FeedItem After Insert Trigger
I'm trying to get the attachments from a FeedItem after insert trigger, but it does not return all the associated attachments. I understand attachments are inserted after the FeedItem is inserted...
View ArticleWhat's up with CollaborationGroupFeed?
We're trying to display FeedItems for a Chatter group to our external users on a Community site. The obvious thing is to use the built in Feed component in the Builder. But that is disappointingly...
View Article