+ Start a Discussion

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?





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