---
schema_version: "1"
id: 68da03b5beb33ab9f95867ebcaf6c64638a5eda4ee0e3e4fee0b507b1961de2b
title: Follow a Record
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/connectapi_examples_follow_record.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_follow_record.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bd698af1d20bf231fd48f71d069963d91235b8218135934d22442f128d261b9b
description: Call a method to follow a record.
---
# Follow a Record

Call a method to follow a record.

Call [follow(communityId, userId, subjectId)](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_ConnectAPI_ChatterUsers_static_methods.htm#apex_ConnectAPI_ChatterUsers_follow) to follow a record.

ChatterUsers.ConnectApi.Subscription subscriptionToRecord = ConnectApi.ChatterUsers.follow(null, 'me', '001RR000002G4Y0');

#### See Also

- [Unfollow a Record](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_unfollow_record.htm "Call a method to stop following a record.")