Newer Version Available
Unfollow a Record
When you follow a record, the call to ConnectApi.ChatterUsers.follow returns
a ConnectApi.Subscription object.
To unfollow a record, pass the id property of that object to the deleteSubscription(communityId, subscriptionId) method.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17ConnectApi.Chatter.deleteSubscription(null, '0E8RR0000004CnK0AU');