The tag has no usage guidance, but it has a tag wiki.

learn more… | top users | synonyms

0
votes
1answer
17 views

Insert ContentDocumentLinks for Chatter Content Posts

We have a set of ContentVersion records that have been inserted by users via a FeedItem post. Unfortunately because Chatter groups has many functional limitations we have to migrate these files to ...
1
vote
1answer
26 views

Email is not received when FeedItem body is modified through trigger

I have a trigger which modifies the content of chatter feed on a particular object (Position__c). Code: trigger FeedItemBodyModify on FeedItem (before insert,before update) { for(FeedItem fi ...
1
vote
1answer
46 views

Post a feed in Community Chatter Group

I have a private chatter group in community. I want to post something in this group by System Admin. When system admin create a FeedItem and putting ParentId = groupId programatically then getting ...
1
vote
0answers
23 views

How to find subscribers(or Followers) from FeedItem?

I want to know how to find the subscriber of a FeedItem, so that I can mail him as new feed gets created. I tried with FeedItem, EntitySubscription and one custom object's field. But failing to get ...
0
votes
1answer
46 views

Using postFeedItemWithMentions I can't set visibility “AllUsers”

I'm trying to create a chatter post via Apex. The problem I'm facing with is the visibility in the partner community. The user mentioned remains highlighted in Gray. In the FeedItem record what I can ...
0
votes
0answers
28 views

How to programmatically set File/Feed Item Permissions

There are a couple of questions already similar, but not quite the same - we are in quite a bind, every fork in the feed item/content road has been a total dead end, after almost 9 years on this ...
0
votes
0answers
14 views

Update Custom Fields on ContentVersion

On a series of ContentVersion records inserted via Chatter FeedItem, I'm trying to assign custom fields on these records after they've been inserted, but as they were created via a FeedItem post I ...
0
votes
1answer
51 views

Querying ContentVersion or ContentDocument for User Other Than Owner - Only One Record At a Time?

My issue is that I can't seem to query more than one record at a time from the ContentVersion or ContentDocument if I'm not the owner of the file. Here is what works for me: ...
1
vote
2answers
53 views

Help with Feeditem Trigger

All: I want my trigger to copy Attachments (File) uploaded to Account`s chatter feed and re-post it to a group. For some reason, code below is failing. Can someone pls suggest why this is happening? ...
3
votes
1answer
38 views

ContentWorkspace Permission And Migrating

I am working on an instance that has a large set of ContentVersion data uploaded by Customer Portal Users and saved across many ContentWorkspace(s) or Libraries. We have encountered some issues ...
1
vote
1answer
43 views

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

I'm trying to let Customer Community users upload and retrieve files on cases. I've done this using Chatter Files before, on a custom object that had it's sharing set to private (because it was a in a ...
0
votes
1answer
36 views

FeedItem should show to Chatter FreeUser

When case is created from partner Community User(Partner Communtity Profile), I'm creating record in FeedItem, FeedItem fi = new FeedItem(); fi.Body = 'Feed Body'; fi.ParentId = ...
0
votes
1answer
41 views

upserting a feeditem

I'm actually working on a backup and restore procedure of my salesforce data, and my client wants the ability to restore their chatter feed also. I saw in the documentation ...
1
vote
1answer
25 views

Related to feed Items

Here I am uploading data From Audit trail to Feed Items through a trigger ,but during inserting records in Feed Items Trigger Throwing error like "Entity is not api accessible" this,can anyone give ...
0
votes
1answer
16 views

Access CaseFeed as a Chatter free License User

I insert comment on CaseFeed logged in as a System admin Profile. I have Chatter Free License User. I want those comments can alse visible to Chatter free license user and can able to Comment on ...
0
votes
2answers
49 views

Enable Chatter Feed Tracking programatically for long / rich field

Is there any way to Chatter Feed Tracking programatically for a field which is long / rich datatype in salesforce.com? I tried to do this using salesforce standard way but was not able to get the ...
2
votes
1answer
96 views

Unrecognized field “attachment” when POSTing a Chatter FeedItem with a file

I'm attempting to create a new Chatter FeedItem using the Salesforce REST API. I'm constructing a multi-part request with the following parameters: { "feedElementType": "FeedItem", "subjectId": ...
0
votes
1answer
92 views

Can 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 ...
0
votes
0answers
56 views

Upload File (image/audio/video) to FeedItem in chunks

​public static String upload(String folderId, String documentId, String fileName, String base64BlobValue) { if(documentId == '' || documentId == null) { Document document = new ...
0
votes
1answer
19 views

Chatter Event without a Related To Onto the User's page

I have a trigger that collects Events without a related to and pushes them to a Future Method class - because events added via outlook don't have a WhatId! - and then publishes a Chatter post on the ...
0
votes
0answers
19 views

How to migrate Chatter posts assigned to each existing case

Can anyone help me out with how to migrate Chatter posts assigned to each existing case from one org to other. Thanks In advance
2
votes
1answer
89 views

Test coverage for FeedItem

I'm trying to get my test coverage up and I'm having a few problems to get it done. I have a trigger that will call a class every time a user inserts or updates an event. If that event contains an ...
2
votes
0answers
41 views

FeedComment insertion does not generate Chatter email

I was able to create an automated FeedItem trigger that fires and automatically replies (from a dummy user) to a user when he/she makes posting. I did not get the typical "commented on your post" ...
0
votes
1answer
11 views

Chatter Threads not shown in debug logs

I've been developing an OOO auto-reply for my org so that when, for example, user A @mentions user B (who is on vacation) - user A will get auto chatter response from user B that he/she is on ...
0
votes
1answer
68 views

Inserting Feed-Item with Attachment for Community

I am trying to inserting Feed-Item with Attachment in Production and in Sandbox separately for community users. Community is active and my customer profile is added to the community. I know that I ...
1
vote
1answer
24 views

upload documents to case feed in batch

I have several documents that need to be upload as case feed items to their cases. Since I have 1000 such documents I would like to know if there is a way I can automate this task
0
votes
1answer
167 views

Trigger on Attachment to insert FeedItem

I have been trying to get a trigger to fire when a new attachment is inserted (After insert), the ParentId is Event for that attachment, and the Event is related to an Account. So, if anyone inserts ...
1
vote
1answer
192 views

One Class to control all Trigger. - Dispatcher

I'm having some problems when trying to make a number of classes and triggers to run on a dispatcher class. The components for this architecture are the following: One -TriggerDispatcher class. ...
0
votes
0answers
149 views

Testing FeedItem with NetworkScope

I'm testing the insert of a FeedItem (with a ContentPost), however, I keep getting an exception: List<FeedItem> feedItems = new List<FeedItem>(); for (SObject so : ...
1
vote
2answers
257 views

EXCEPTION: System.SObjectException: Field is not writeable: FeedItem.Visibility

I´m trying to update the visibility for feed items: for (FeedItem FI: [SELECT id FROM FeedItem where Type = 'LinkPost' order by createddate desc]){ FI.visibility='InternalUsers'; } I get ...
1
vote
1answer
85 views

@mentions for given feeditem id through soql

Is it possible to get details about @mentioned in feeditem body through soql. REST API and Connect API are available, but not able to locate any standard object which has this information. Please ...
0
votes
0answers
159 views

Copying feed items from opportunity to related account

I am trying to copy feeds from an opportunity to it's related account and I it doesn't seems to be so easy. :) feed is a complex object as can be seen here so basically I want to copy also the ...
0
votes
2answers
94 views

Post Chatter on Field Change on Update

Can someone help me nail the syntax on chattering on a field update? trigger ChatterCoverageUpdate on Account (before update) { List<FeedItem> feedItems = new List<FeedItem>(); for ( ...
2
votes
2answers
317 views

FeedItem to record with multiple @mention

I am trying to achieve feed item to record with multiple @ mentions when status of record goes to Complete.Here is the sample code which creates a feed item to record with single @ mention. ...
2
votes
2answers
328 views

How to use Blob inside a Trigger (BLOB is not a valid UTF-8 string)?

I am writing a trigger to Insert a Image in a record which will be posted via feed string img; trigger will save if I define "img" has a String on line 3 & ...
1
vote
1answer
95 views

Post a Comment to Chatter as a Another User

I have this code working to post a FeedItem to Chatter: FeedItem post = new FeedItem(); post.ParentId = project.Id; post.Body = message; post.Type = 'TextPost'; post.CreatedById = ...
0
votes
0answers
45 views

How to share Chatter Question between groups?

I am adding feeds in a group, where Type : QuestionPost ParentId : Is id of one group The reason behind it is that if a particular group has some queries, this feed will have the answers populated in ...
2
votes
1answer
54 views

Feed migration for one custom object to other custom object

I need to migrate Feed data posted on records of custom object. I am able to migrate FeedItem, FeedLikes and FeedComments but not able to find how to migrate FeedLikes on comments postes on FeedItem ...
4
votes
2answers
106 views

Missing option to create feed item in UI (Sandbox)

We've enabled Chatter in a sandbox but we do not see the option to actually create a new feed item in the UI, even as an Admin. I can create them via Apex so I don't believe this is a permissions ...
0
votes
0answers
155 views

Get ID of FeedItem

I am using a trigger to get the content of the latest chatter post to send it to an external application, however I am having difficulty getting the ID of the FeedItem. post.Body returns the body of ...
0
votes
1answer
320 views

Compile Error: Loop must iterate over a collection type: SOBJECT:FeedItem

I am new to Apex and I have the following code to call a function each time a new Chatter post is created: public class MLPost { public static void MLPostCreate(FeedItem post) { for ...
2
votes
3answers
248 views

creating Chatter FeedItem with sites user

is it possible to create a chatter FeedItem with a sites user with public access, is there any workaround to get this done? I tried to insert it with "insert" and also with the ConnectApi but I got ...
2
votes
2answers
368 views

Salesforce 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 ...
0
votes
1answer
210 views

How to create a FeedItem with SOAP API?

I'm trying to fetch certain FeedItems and then save them. None of these two things I could achieve using Java and SOAP, but here I'll focus on only one, and that is saving. SOAP API version is 32.0, ...
1
vote
1answer
141 views

Post to a Chatter feed as a different user than the logged un user from a Trigger

I have a trigger that posts to a Project Object's feed and @mentions someone. The only problem is that I need to be able to post the message as another user, not the user who is logged in. How can I ...
0
votes
1answer
308 views

How to make reports of Feed item and Feed comment objects?

I want to make reports of fields in feed item and feed comment objects. I queried them in apex . Is there anyway to make their fields into reports. Thanks.
0
votes
2answers
109 views

Is there anyway to post feedcomment dynamically

Is there anyway to post a feed comment dynamically for the particular feeditems in visualforce? Please help!
3
votes
2answers
128 views

Which object holds the “follow” details?

I am wondering which object holds the details of "follow". When i click the follow link in Account detail page I understand we can follow the record changes. Based on that understanding i have ...
0
votes
1answer
40 views

Creating two attachments in a single chatter feed item. Is that possible?

I am trying to create a chatter feed item through batch process which would have two attachments. Canvas PDF file In the documentation the attachment parameter for the method, ...
0
votes
1answer
578 views

Combining Link Post and Content Post as a single Chatter feed item. Is that possible?

I am wondering is that possible to create a chatter feed item that is the combination of Link post as well as Content post. Moreover, if that is possible what could be the ContentData. I am assuming ...