3.1.5.19.2.1.1 CreatePost

Return Type: Microsoft.SharePoint.Client.Social.SocialThread

The CreatePost method creates a post in the current user's feed, in the specified user's feed, or in the specified thread. This method returns a new or a modified thread. See section 3.1.5.42 for details on the SocialThread class.

Parameters:

targetId: Optional, specifies the target of the post. If this parameter is null, the post is created as a root post in the current user's feed. If this parameter is set to a site (2) URL or a site (2) actor identification, the post is created as a root post in the specified site (2) feed. If this parameter is set to a thread identification, the post is created as a reply post in the specified thread.

Type: CSOM String

If targetId is an empty string, the post is created as a new thread in the current user's feed.

creationData: Specifies the text and details of the post.

Type: Microsoft.SharePoint.Client.Social.SocialPostCreationData

CreationData specifies the format and content of the post, see section 3.1.5.29 for details on the SocialPostCreationData class.