Migrate Salesforce feeditem, FeedAttachment, FeedPoll, FeedComment and...
We are migrating feedItem, FeedAttachment, FeedPoll, FeedComment, and FeeLike from one Salesforce instance to another Salesforce instance with the help of REST API. We are fetching data from the source...
View ArticleHow to create FeedItem in Salesforce using REST API
We have feedItem from one organization in MySql in the following fields:| Id | char(18) | NO | PRI | NULL | || ParentId | char(18) | YES | | NULL | || Type | varchar(40) | YES | | NULL | || CreatedById...
View ArticleEmail Message on Case Feed - Is it Possible To Show the "From" Address Not...
We are using Service Console with Feed Enabled Layouts on Cases. We are using a programmatic solution to consume Email replies to existing Cases and save the Email on the Case. In the Case Feed an...
View ArticleHow To stop feedItem for status field on Case?
I have enabled feed tracking for Case. But the status field is not set to tracking. But I am still able to see the feedItem on status changes. Please, let me know if I am missing anything or it can be...
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 ArticleTrying to export FeedItem (chatter posts) using dataloader - stuck counting...
I am trying to export chatter posts (feeditem object - ideally with a contact reference/ID) using dataloader.io but no matter how I create the export job (or which instance I try it in) the GUI sticks...
View ArticleHow to create feeditem when creating a task via apex, which looks and feels...
We have set up a new trigger that inserts tasks related to Leads (whoid is a specific Lead), and we want those tasks to post to chatter. I know you can insert a feeditem with relevant information....
View ArticleSFDX Source Push: Invalid type: FeedItem
I am getting error:Invalid type: FeedItemWhen I run command:sfdx force:source:push Why won't it let me push that code into my scratch org?
View ArticleFeedItem Trigger is not executing
I have a trigger in FeedItem which needs to fire when an article is attached to the case. Here is the trigger:trigger FeedItemTrg on FeedItem (after insert, after update) { for (FeedItem fi :...
View ArticleHow do I send an email from a Case using the REST API?
Salesforce Cases have a feed and it is possible to send an email from the case. The email will go to the creator of the case and appear as an item in the case's feed. See the UI screenshot below. How...
View ArticleHow to access the lead feed content?
I want to access the lead feed content, that behaves as a Lead History tracking element, related to the changes made of the feed.I have verified the fields that this object has, and I can't find any...
View ArticleHow to render one component after another
I have an aura component which is a combination of forceChatter:Publisher and forceChatter:feed. But here in my case forceChatter:feed is getting rendered before forceChatter:Publisher. I want...
View ArticleHow to change what fields are displayed in the Feed View?
In the Feed View of Account, we see this for all the cases related to the Account:How could we remove the fields 'Status' or e.g. 'Priority' from this mini view? I can't seem to find where to add or...
View ArticleRecord feed doesn't update on Event creation via trigger
I'm trying to get the record feed of my leads to update when I create an event with an after update trigger, it's not working. When I create the event manually the feed gets updated, but not when it's...
View ArticleHow to find FeedItem where a ContentDocument is the RelatedRecordId
Given a ContentDocument, I need a way to use SOQL to find any FeedItems that the ContentDocument may be related to.I hoped that ContentDocumentLink would work, but that just seems to give me the case...
View ArticleCan not insert FeedItem through apexrest
When trying to create a FeedItem through the ApexRest I'm always getting the following error:[{"errorCode":"APEX_ERROR","message":"System.DmlException: Insert failed. First exception on row 0; first...
View ArticleSetup ConnectApi.FeedElementPage with message mentions for Test...
I have a class that uses ConnectApi.ChatterFeeds.getFeedElementsFromFeed and from the result page I extract the mentioned users.This is working as intended but now I have to create a test for this and...
View ArticleSalesforce Sites - FeedItem requires a filter by Id
I get an error message when I try to do a Javascript Remote soql query on FeedItems through "sites". It works perfect when I do this within salesforce with a standard user but it doesn't work through...
View ArticleHow can I change the FeedItem's sender?
In the case of the image, the user Alanna Clark updated an account and my trigger runned and posted the FeedItem.But I want to change the sender ("Alanna Clark") for another user called "INTERFACE"...
View ArticlePost Feed Item in User Feed
I'm trying to use apex code so user will be able to post message in other user feed.Tried this simple code:ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), targetUserId,...
View Article