function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Newbie10Newbie10 

how to update a field if user follows a record

My use case is to find total followers on a particular record

So when somebody follows/unfollows that record i would like to update the number of followers of that particular record .stored as a custom field on the object

Possible solution i could think of is have a trigger on entity subscription object ?if so where do we write it?so an after insert/before delete trigger should help in updating?

Or can i avoid code at all?

Subramani_SFDCSubramani_SFDC

https://success.salesforce.com/answers?id=90630000000gq9vAAA

 

 

go throgh the link..it may help u....