Questions tagged [entitysubscription]
EntitySubscription is a class to use to store the Subscriber(or Followers) of a File/Object in Chatter.
16 questions
1 vote
2 answers
8k views
How to retrieve the list of users who subscribed to a report
I tried a soql which should return the list of user ids who subscribed to a particular report. Below is my soql, but it returns no results. select id, subscriberid from entitysubscription where ...
0 votes
1 answer
471 views
Clarification on subscription behavior in CPQ when multiple revisions occur to a subscription, does it chain or do both point to the original sub?
If I have a contract in SF CPQ with subscription x1 at quantity 100, I amend it to be quantity 200. This creates subscription x2 which has a revised subscription pointer to x1. I then amend it again ...
0 votes
1 answer
2k views
Apex Class Not Sending SingleEmailMessages [closed]
To begin, I'd like to explain that the following class works in tandem with a process that detects incoming email messages to a case and then sends the ID of that email message to the class. The class ...
0 votes
1 answer
582 views
Subscriptions not seen in Salesforce platform events
I am trying to subscribe to Salesforce Platform Events in my Developer Edition through AWS Lambda via Connected App(Using nforce SDK). Code is as follows: var AWS = require('aws-sdk'); //Importing ...
0 votes
1 answer
1k views
Need help with this strange error: DUPLICATE_VALUE, duplicate value found: <unknown> duplicates value on record with id: <unknown>: []
I have an apex code which identifies users who have subscribed to an Account( basically followed an Account for any chatter posts ).The code then subscribes these users to the related Opportunities of ...
5 votes
1 answer
2k views
Apex - Accurately Identify users tagged in Chatter comments and set them as followers automatically [duplicate]
I already know how to set someone to auto-follow a record based on specific criteria (record created, modified, etc) by inserting records into the EntitySubscription object. What I am trying to ...
0 votes
1 answer
339 views
Help with EntitySubscription trigger
I am definitely in the beginning stages of my Apex learning, so I was hoping if I could ask for help on a problem I am working on. I would like to create a trigger which would auto subscribe a user to ...
2 votes
1 answer
359 views
Add subscriber to a chatter feed on a parent object
I am new to Apex, and I was hoping that I could get help. My goal is to auto subscribe a user to chatter on parent object. For example, I have two object, Story, and Story Task. Story is the parent ...
0 votes
1 answer
159 views
What is FeedSubscriptionsForEntity on Contact?
I'm looking through the code base for my organization and I see that there are SOQL references to "FeedSubscriptionsForEntity." For example: SELECT SubscriberId FROM FeedSubscriptionsForEntity or ...
0 votes
1 answer
42 views
Is this trigger efficient? Subscribing owner and teamMembers
Trying to make the Opportunity Owner and Team Members follow the Opportunity - I think this is working but I bet there is a more compactway to process. Thanks! trigger OppOwnerFollower on ...
0 votes
1 answer
503 views
AutoFollow using EntitySubscription
I'm trying to write a bulkified logic for a problem on entity subscription. I've a custom object Student which has custom lookup field to User named as Mentor. The use case is when the mentor field is ...
2 votes
1 answer
257 views
EntitySubscription object not available in the partner developer org. Any thoughts please?
We are not able to find EntitySubscription object in the partner developer org which is created in Partner org. This is the developer org we created using Environment Hub option. We are planning to ...
0 votes
1 answer
958 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 ...
4 votes
2 answers
3k 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 ...
1 vote
1 answer
63 views
Is it possible to add extra settings into the Email settings [picture]
Is it possible to add a table of values into the default Salesforce Email settings window? I wanted to add a Table section into the area marked RED in the picture. Thanks in advance!