---
schema_version: "1"
id: 53bf55448180f27fbd925a27cbe8bd777e3ab094f586c3ea124744fbcbd24272
title: SocialPost
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_socialpost.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_socialpost.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6cfa30f4fc71694348133ca88af4089f74fd95fee7e9a28c83b3a6289fed55ff
description: Represents a snapshot of a post on a social network such as a Facebook or Twitter. This object is available in API version 23.0 and later.
---
# SocialPost

Represents a snapshot of a post on a social network such as a Facebook or Twitter. This object is available in API version 23.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

| Field Name | Details |
| --- | --- |
| AnalyzerScore | 
Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

Score set on the social post in Social Studio.



 |
| AssignedTo | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort

Description

User in Social Studio that the social post is assigned to.



 |
| AttachmentType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Type of the first attachment on the social post. Values are:

- APPLICATION
- AUDIO
- IMAGE
- LINK
- TEXT
- UNKNOWN
- VIDEO





 |
| AttachmentUrl | 

Type

url

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

URL for the first attachment on the social post.



 |
| Classification | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Classification for the social post, such as inquiry or customer case.



 |
| CommentCount | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Number of comments on the social post.



 |
| Content | 

Type

textarea

Properties

Create, Nillable, Update

Description

Body of the social post.



 |
| DeletedById | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

If the social post is deleted, ID of the person who deleted the social post.

This is a relationship field.

Relationship Name

DeletedBy

Relationship Type

Lookup

Refers To

User



 |
| EngagementLevel | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Engagement level of the social post, such as reviewed or resolved.



 |
| ExternalPostId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the social post in its social network.



 |
| Handle | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Handle of the person who posted the social post.



 |
| HarvestDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

Date and time when Social Studio collected the social post.



 |
| Headline | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Headline of the social post.



 |
| HiddenById | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

If the social post is hidden, ID of the person who hid it.

This is a relationship field.

Relationship Name

HiddenBy

Relationship Type

Lookup

Refers To

User



 |
| InboundLinkCount | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Number of links on the inbound social post.



 |
| IsOutbound | 

Type

boolean

Properties

Create, Defaulted on create, Filter, Group, Sort

Description

Specifies whether the social post is outbound or not.



 |
| KeywordGroupName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Radian6 field that is no longer used.



 |
| Language | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Language of the social post.



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Date when the social post was last referenced.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Date when the social post was last viewed.



 |
| LikedBy | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the managed social account in the social network that liked the social post.



 |
| LikesAndVotes | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Radian6 number of likes and votes on the social post.



 |
| MediaProvider | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Social network of the social post.



 |
| MediaType | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Type of social network of the social post.



 |
| MessageType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Type of message. Values are:

- Comment—Facebook comment
- Direct—Twitter direct message
- Post—Facebook post
- Private—Facebook private message
- Reply—Twitter or Facebook reply
- Retweet—Twitter retweet
- Tweet—Twitter tweet





 |
| Name | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

Name of the social post.



 |
| Notes | 

Type

textarea

Properties

Create, Nillable, Update

Description

Notes added by Social Hub actions for the social post.



 |
| OutboundSocialAccountId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

ID of the social account used for outbound social posts.

This is a relationship field.

Relationship Name

OutboundSocialAccount

Relationship Type

Lookup

Refers To

ExternalSocialAccount



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

ID of the owner of the social post.

This is a polymorphic relationship field.

Relationship Name

Owner

Relationship Type

Lookup

Refers To

Group, User



 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the parent record of the social post, for example, the ID of a case.

This is a relationship field.

Relationship Name

Parent

Relationship Type

Lookup

Refers To

Case



 |
| PersonaId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the social persona who made the post.

This is a relationship field.

Relationship Name

Persona

Relationship Type

Lookup

Refers To

SocialPersona



 |
| PostPriority | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Priority of the social post set in Social Studio.



 |
| PostTags | 

Type

textarea

Properties

Create, Nillable, Update

Description

Comma-separated list of tags on the social post.



 |
| PostUrl | 

Type

url

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

URL for the social post.



 |
| Posted | 

Type

dateTime

Properties

Create, Defaulted on create, Filter, Sort, Update

Description

Date and time when the social post was made.



 |
| Provider | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort

Description

Social network of the social post.



 |
| R6PostId | 

Type

string

Properties

Create, Filter, Group, idLookup, Nillable, Sort, Update

Description

Unique ID of the post in Social Studio.



 |
| R6SourceId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the author in Social Studio.



 |
| R6TopicId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID for either the topic profile or the managed account in Social Studio.



 |
| Recipient | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

ID of the recipient of the social post in Social Studio.



 |
| RecipientType | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Type of the recipient of the social post, such as a person.



 |
| ReplyToId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort

Description

Dynamically generated from replyToExternalPostId in Social Studio.

This is a relationship field.

Relationship Name

ReplyTo

Relationship Type

Lookup

Refers To

SocialPost



 |
| ResponseContextExternalId | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

External ID, such as a conversation ID, author ID, or post ID, for the item you’re responding to.



 |
| ReviewScale | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

Review scale for the social post.



 |
| ReviewScore | 

Type

double

Properties

Create, Filter, Nillable, Sort, Update

Description

Review score for the social post.



 |
| ReviewedStatus | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Status of the social post review.



 |
| Sentiment | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Sentiment of the social post. Values are:

- Negative
- Neutral
- Positive
- SomewhatNegative
- SomewhatPositive





 |
| Shares | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Number of times the social post has been shared.



 |
| SourceTags | 

Type

textarea

Properties

Create, Nillable, Update

Description

Comma-separated list of author type tags.



 |
| SpamRating | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Spam rating of the social post. Values are:

- NotSpam
- Spam





 |
| Status | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Status of the social post. Values are:

- DELETED
- FAILED
- HIDDEN
- PENDING
- PENDING\_APPROVAL
- RECALL\_APPROVAL
- REJECTED\_APPROVAL
- REPLIED
- SENT
- UNKNOWN





 |
| StatusMessage | 

Type

textarea

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Status message for the social post.



 |
| ThreadSize | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Radian6 field. No longer used.



 |
| TopicProfileName | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Name of the topic profile for the social post in Social Studio.



 |
| TopicType | 

Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

Type of topic. Values are:

- Keyword
- Managed





 |
| TruncatedContent | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Truncated content of the social post.



 |
| UniqueCommentors | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Number of unique people who commented on the social post.



 |
| ViewCount | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Number of times the social post was viewed.



 |
| WhoId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

Polymorphic ID of a person such as a lead or a contact.

This is a polymorphic relationship field.

Relationship Name

Who

Relationship Type

Lookup

Refers To

Account, Contact, Lead



 |

## Usage

The fields on a SocialPost object don’t provide real-time data. They provide a snapshot of information from the last time Salesforce collected the post from the social network. Many of the Radian6-related fields are no longer accurate or used.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[SocialPostChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 48.0)

Change events are available for the object.

[SocialPostFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.") (API version 26.0)

Feed tracking is available for the object.

[SocialPostHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.") (API version 26.0)

History is available for tracked fields of the object.

[SocialPostOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[SocialPostShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.