SP.Social.SocialPostCreationData.contentText property (sp.userprofiles)

Gets or sets the plain text of the post, which may include positional insertion tokens.

See How to: Create and delete posts and retrieve the social feed by using the JavaScript object model in SharePoint 2013 for an example.

Applies to: apps for SharePoint | Office 365 | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Social.SocialPostCreationData.get_contentText()
SP.Social.SocialPostCreationData.set_contentText(value)

Return value

Type: string
The plain text of the post.

Remarks

Positional insertion tokens are replaced by the items in the contentItems property. HTML tags are not accepted. The maximum length of a post is 512 characters.

See also

Other resources

How to: Create and delete posts and retrieve the social feed by using the JavaScript object model in SharePoint 2013