button for "follow" on chatter

  • 1
  • Question
  • Updated 5 years ago
Is there a way to create a button to allow following on chatter?
Photo of David Forder

David Forder

  • 2,144 Points 2k badge 2x thumb
  • confused

Posted 5 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
The chatter following function uses a sObject called Entity Subscription.  Adding a record to that table will create a follower.  You could create a model on this object and then create  a button that runs a snippet that adds a row to the model with the subsciber ID = to the user's ID. 
Photo of David Forder

David Forder

  • 2,144 Points 2k badge 2x thumb
Thanks Rob.. will give it a try )