Share via


SP.Social.SocialDataItem object (sp.userprofiles)

Represents a link to a document, site, or website, a user mention, or a tag reference in a microblog post.

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

var object = new SP.Social.SocialDataItem()

Members

The SocialDataItem object has the following members.

Constructor

The SocialDataItem object has the following constructor.

Constructor

Description

SocialDataItem

Initializes a new instance of a link to a document, site, or website, a user mention, or a tag reference in a microblog post.

Methods

The SocialDataItem object has the following methods.

Method

Description

initPropertiesFromJson

This member is reserved for internal use and is not intended to be used directly from your code.

writeToXml

This member is reserved for internal use and is not intended to be used directly from your code.

Properties

The SocialDataItem object has the following properties.

Property

Description

accountName

Gets or sets the account name of the user to mention.

itemType

Gets or sets the link type: a link to a document, site, or website, a user mention, or a tag reference.

tagGuid

Gets or sets the tag GUID.

text

Gets or sets the plain text to insert into the post's content text at the specified position.

typeId

This member is reserved for internal use and is not intended to be used directly from your code.

uri

Gets or sets the URI for the document, site, or website.

See also

Other resources

SP.Social namespace

How to: Include mentions, tags, and links to sites and documents in posts in SharePoint Server 2013