How 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 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 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 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 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 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 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 ArticleCan Chatter ConnectAPI be used to search chatter post feed only
Currently i am trying get chatter feed in visualforce page. I only want the feed which has a query string. But i want all the recent comments for the post. I couldn't find a visualforce tag to get the...
View ArticleWhich Type of FeedItem Records can I import?
I am facing a SF to SF migration and despite all efforts to avoid it, chatter posts have to be migrated as well. I wanted to know which types of chatter posts I am actually able to create via the API...
View ArticleAccess Errors on FeedAttachment for Chatter Test Class
I am designing a test class for a Chatter component controller I did not design, and I am having issues creating test data. I have posted code below my issue description. I have removed most of the...
View ArticlePOST as another user using Salesfore API. (Sender Id unavailable in request...
I am trying to use chatter REST API to GET and POST data into custom C# application from a Salesforce. I am able to get data successfully. But, when I try to POST data into Salesforce as a particular...
View ArticleIs there a way to change the "primitive" icon in a Chatter/Feed post when...
I want to change the Icon that the arrow is pointing to when making a Chatter post with Apex preferably on insertion. Is this possible? Is there another way to change the default "primitive" icon?
View ArticleCustomer user cannot create chatter post on a community group
I have an issue when I try create a post from an apex class, the user is a customer community user and I create the post from a Lightning...
View ArticleUnable to set isRichText to true with Flow
I have a flow that copy a Chatter post to the chatter of a related record. The issue is that there are unwanted html tags added to the chatter of the related records: I try to update the record of all...
View ArticleFeedItem Trigger - Parse Mentions?
There are many questions out the about how to add @mentions to a chatter post, but this question is the other way around:How do I read @mentions from a FeedItem in the trigger context?I need to be able...
View ArticleHow get FeedItem with type TrackedChange
when i execute this:Account acc = new Account(Name = 'newTest1',Phone = '+4444444444');insert acc;acc.Name = 'ChangedTestAnonimusAcc';acc.Phone = '+55555555555';update acc;List<FeedItem>...
View ArticleQuery Chatter Feed, Topics, and Groups
First off, my end goal is lofty and time-consuming, but we need metrics and this is the best way to do it (that I can think of). Originally, a chatter post was created on the quote, case, or where...
View ArticleIs there any way to have a very lazy evaluation of Labels used in Salesforce...
I'm currently working for a company whose main language is German though they are an increasingly multilingual company.I have a requirement that when some event happens, notifications should be sent...
View Article'Enable Unread/Read on Compact Case Feed' feature impacting...
New feature: Enable Unread/Read on Compact Case Feed enabled in Support Settings from Winter...
View Article