Questions tagged [feedcomment]
The feedcomment tag has no summary.
34 questions
-1 votes
1 answer
808 views
Remove comment from Chatter post
I would like to remove the option to comment on the post made in the Chatter feed. Does anyone know if it is possible and how to do it?
0 votes
1 answer
370 views
Trigger to update Case Status if Status = Waiting on Internal and gets a new FeedComment
I have this block of code to update case status when we receive a new FeedComment on a case. But I want to update it to only update if the case has a status of "Waiting on Internal" or "...
0 votes
1 answer
512 views
Apex Trigger to Update Feed Comment
I am new to Apex Triggers. I have a checkbox field in Opportunity called "Opportunity Approved?". Currently as soon as user selects the checkbox, its adding a feed comment like this, ...
0 votes
1 answer
2k views
Add Validation Error
I need to throw an error to the user when he tries to post/comment on case whose status is Closed - Resolved. I've tried to implement that and when I try to comment on a case the trigger is failing ...
1 vote
1 answer
650 views
Workaround of Misleading error "The configuration of your org has changed, please reload the page. Missing dependent object: SObject: Settings__Feed"?
Back in September the 23th 2021 I have opened a case in Salesforce Support about the issue on our project "The configuration of your org has changed, please reload the page. Missing dependent ...
0 votes
1 answer
896 views
Get FeedItem and TopicAssignment details from FeedComment
I'm trying to build a query which would get all comments and the Topics assigned to the FeedItem they belong to but looks like I have hit a snag. This is what I'm trying right now --> SELECT Id, ...
1 vote
0 answers
33 views
Getting field-level security without apex coding in SalesforceMobileSDK
By declaring the Apex Class with sharing keyword, non-admin user can select or edit field-level security. How can i able to do this in mobile application only using SalesforceMobileSDK without ...
1 vote
1 answer
762 views
Getting FeedComment Post's Data
While using community user to query FeedComment, I get following error: "Implementation restriction: directly querying FeedComment is only supported for admin users in version 23.0 and higher.&...
2 votes
1 answer
750 views
In Salesforce Classic, Contentversion Triggers not firing on files uploaded through chatter comments?
We are currently attempting to restrict which files can be globally uploaded in our org using information present on the ContentVersion / Attachment objects. However, in the case of files uploaded ...
1 vote
0 answers
53 views
Using REST API to find a community user's last activity (question or comment)
I'm very new to Salesforce and trying to use the REST API to find which users were active on a community on a particular day. For example, which users posted a question or an answer today (Aug-14-2020)...
1 vote
1 answer
162 views
If user in list, update case field on chatter
I have written an apex trigger based largely off another answer on here which updates a timestamp field on a case, my question is -- how can I do the update on the field only if a certain user has ...
-1 votes
1 answer
231 views
Issue in FeedComment Trigger
I have a trigger on FeedComment which is intended to prevent file upload in FeedComment, below is the code. It shows the popup error msg on the screen but in backend it inserts ContentVersion,...
1 vote
1 answer
263 views
How 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. ConnectApi....
0 votes
0 answers
465 views
Unable 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 ...
4 votes
1 answer
233 views
Invoking 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 ...