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
SushupsiSushupsi 

Customize chatter "Follow" functionality

Hi All,

 

Please help me design a solution for the following problem:

 

We require to build a custom follow functionality. When we create a record (of any object) in salesforce, we would like to have an option to choose a user or a group of users and mark them to follow the record that is created.

 

We would want to have a custom button on the detailed page of the Record and on click of the button get an option to choose the users whom i want to follow the current record.

 

Please help us with the same. This is very intresting to take up as a challenge.

 

TIA

 

- Sushupsi

Jia HuJia Hu
Just for discussion,
1. Create a VF page and link it to your custom button
2. When click the button, it pop up a window with a user list for selection
3. After end use made the selection, you can add the selected user as the followers in your Controller of the VF page.

The most challenge will be the step 2.
How to generate a userlist in the pop up window like Salesforce is a problem. You may need jQuery.