3.1.5.46.2.1.2 Follow

Return Type: Microsoft.SharePoint.Client.UserProfiles.FollowResult

The Follow method adds the specified document or site (2) to the list of followed content.  The url parameter can identify an existing document or site (2) using the url property of the original item.  The url parameter can also identify a document with the following format:

 http://host/site?listId=listid&itemId=itemid 

where listid is the parent list identifier and itemid is the item identifier.

See section 3.1.5.49 for details on FollowedItem type.

Parameters:

url: URL that identifies the item to follow.

Type: CSOM String

data: Optional parameter that holds application-defined data for the item.

Type: Microsoft.SharePoint.Client.UserProfiles.FollowedItemData

See section 3.1.5.50 for details on FollowedItemData type.