New and Changed Chatter in Apex Output Classes

Capabilities

See Capabilities for general information about capabilities and how they have changed in API version 32.0.

ConnectApi.AbstractBundleCapability
In version 32.0, this class has been renamed ConnectApi.BundleCapability. The feedElements property name has changed to page and is a ConnectApi.FeedElementPage object.
ConnectApi.ApprovalAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.ApprovalCapability is used.
ConnectApi.​ApprovalCapability
If a feed element has this capability, it includes information about an approval.
This new output class is a subclass of ConnectApi.FeedElementCapability and contains these properties:
  • idThe work item ID. The work item ID is null if there isn’t a pending work item associated with the approval record.
  • postTemplateFieldsThe details of the approval post template field.
  • processIntanceStepIdThe process instance step ID. The associated record represents one step in an approval process.
  • statusThe status of the approval.
ConnectApi.BasicTemplateAttachment
This class isn’t available in version 32.0 and later. In versions 32.0 and later, use ConnectApi.EnhancedLinkCapability.
ConnectApi.​Bookmarks​Capability Class
This output class has one new property: isBookmarkedByCurrentUser, which is a boolean value indicating whether the feed element has been bookmaked (true) or not (false).
ConnectApi.​BundleCapability Class
In version 31.0, this class was called ConnectApi.AbstractBundleCapability. In version 32.0, the feedElements property name has changed to page and is a ConnectApi.FeedElementPage object.
This class is still abstract and is the superclass for
  • ConnectApi.​GenericBundleCapability Class
  • ConnectApi.TrackedChangeBundleCapability
ConnectApi.Canvas​Capability
If a feed element has this capability, it renders a canvas app.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • descriptionA description of the canvas app. The maximum size is 255 characters.
  • developerNameThe API name (developer name) of the connected app.
  • heightThe height of the canvas app in pixels.
  • iconThe icon for the canvas app.
  • namespacePrefixA unique namespace prefix for the canvas app.
  • parametersJSON parameters passed to the canvas app.
  • thumbnailUrlA thumbnail URL to a preview image. The maximum thumbnail size is 120 pixels by 120 pixels.
  • titleA title for the canvas link.
ConnectApi.CanvasTemplateAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.CanvasCapability is used.
ConnectApi.CaseComment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.CaseCommentCapability is used.
ConnectApi.Case​CommentCapability
If a feed element has this capability, it has a case comment on the case feed.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • actorTypeSpecifies the type of user who made the comment.
  • createdByInformation about the user who created the comment.
  • createdDateISO8601 date string, for example, 2011-02-25T18:24:31.000Z.
  • eventTypeSpecifies an event type for a comment in the case feed.
  • id18-character ID of case comment.
  • publishedSpecifies whether the comment has been published.
  • textText of the case comment.
ConnectApi.ChatterLikePage
This output class has one new property, items, which is a list of ConnectApi.ChatterLike objects. Use this property instead of the likes property, which is no longer supported as of version 32.0.
ConnectApi.​ChatterLikes​Capability Class
If a feed element has this capability, the context user can like it. Exposes information about existing likes.
This output class has these new properties:
  • isLikedByCurrentUserIndicates whether the feed element is liked by the current user (true) or not (false).
  • pageLikes information for this feed element.
  • likesMessageA message body that describes who likes the feed element.
  • myLikeIf the context user has liked the feed element, this property is a reference to the specific like, null otherwise.
ConnectApi.​Comment Class
This class has these new properties:
  • capabilities—A ConnectApi.CommentCapabilities object representing the capabilities associated with the comment. Use this property instead of the attachment property, which is no longer supported.
  • feedElement—A ConnectApi.Reference object representing the feed element on which the comment is posted. Use this property instead of the feedItem property, which is no longer supported.
ConnectApi.​CommentCapabilities Class
A set of capabilities on a comment.
This new output class has one property, content, which is a ConnectApi.ContentCapability object containing information about a file attached to a comment.
ConnectApi.​Comment​Page Class
This output class has one new property, items, which is a list of ConnectApi.Comment objects. Use this property instead of the comments property, which is no longer supported as of version 32.0.
ConnectApi.​CommentsCapability Class
If a feed element has this capability, the context user can add a comment to it.
This output class has one new property, comments, which is a ConnectApi.CommentPage object containing information about the comments on this feed element.
ConnectApi.ContentAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.ContentCapability is used.
ConnectApi.​ContentCapability
If a feed element has this capability, it has a file attachment.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • checksumMD5 checksum for the file.
  • contentUrlURL of the content for links and Google docs.
  • descriptionDescription of the attachment.
  • downloadUrlURL to the content.
  • fileExtensionExtension of the file.
  • fileSizeSize of the file in bytes. If size cannot be determined, returns Unknown.
  • fileTypeType of file.
  • hasPdfPreviewtrue if the file has a PDF preview available, false otherwise.
  • id18-character ID of the content.
  • isInMyFilesSynctrue if the file is included in the user’s Salesforce Files Sync folder, and is synced between that folder and Chatter; false otherwise.
  • mimeTypeMIME type of the file.
  • renditionUrlURL to the rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.
  • renditionUrl240By180URL to the 240x180 size rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.
  • renditionUrl720By480URL to the 720x480 size rendition resource for the file. Renditions are processed asynchronously and may not be available immediately after the file has been uploaded.
  • textPreviewText preview of the file if available, null otherwise. The maximum number of characters is 200.
  • thumb120By90RenditionStatusThe status of the rendering of the 120x90 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.
  • thumb240By180RenditionStatusThe status of the rendering of the 240x180 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.
  • thumb720By480RenditionStatusThe status of the rendering of the 720x480 pixel sized preview image of the file. Should be either Processing, Failed, Success, or Na if unavailable.
  • titleTitle of the file.
  • versionIdVersion ID of the file.
ConnectApi.DashboardComponentAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.DashboardComponentSnapshotCapability is used.
ConnectApi.​DashboardComponent​Snapshot
Represents both dashboard component snapshots and alerts you receive when a dashboard component value crosses a threshold.
This new output class has these properties:
  • componentId18-character ID of the dashboard component.
  • componentNameThe dashboard component name.
  • dashboardBodyTextDisplay this text next to the actor in the feed element.Use this text in place of the default body text.
  • dashboardId18-character ID of the dashboard.
  • dashboardNameThe name of the dashboard.
  • fullSizeImageUrlThe source URL to retrieve the full-size image of a snapshot. Access this URL with OAuth credentials.
  • lastRefreshDateISO-8601 formatted date specifying when this dashboard component was last refreshed.
  • lastRefreshDateDisplayTextDisplay text for the last refresh date, for example, “Last Refreshed on October 31, 2013.”
  • runningUserThe running user of the dashboard at the time the snapshot was posted. This value may be null. Each dashboard has a running user, whose security settings determine which data to display in a dashboard.
  • thumbnailUrlThe source URL to retrieve the thumbnail image of a snapshot. Access this URL with OAuth credentials.
ConnectApi.​DashboardComponent​SnapshotCapability
If a feed element has this capability, it has a dashboard component snapshot. A snapshot is a static image of a dashboard component at a specific point in time.
This new output class is a subclass of ConnectApi.FeedElementCapability and has one new property: dashboardComponentSnapshot, which is a ConnectApi.DashboardComponentSnapshot.
ConnectApi.EmailMessage
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.EmailMessageCapability is used.
ConnectApi.​EmailMessage​Capability
If a feed element has this capability, it has an email message from a case.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • directionThe direction of the email message. Values are:
  • emailMessageIdThe ID of the email message.
  • subjectThe subject of the email message.
  • textBodyThe body of the email message.
  • toAddressesThe To address of the email message.
ConnectApi.​EnhancedLink​Capability
If a feed element has this capability, it has a link that may contain supplemental information like an icon, a title, and a description.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • descriptionA description with a 500 character limit.
  • iconA icon.
  • linkRecordIdA ID associated with the link if the link URL refers to a Salesforce record.
  • linkUrlA link URL to a detail page if available content can’t display inline.
  • titleA title to a detail page.
ConnectApi.​FeedElement​Capabilities Class
A container for all capabilities that can be included with a feed element.
This output class has these new properties:
  • approvalIf a feed element has this capability, it includes information about an approval.
  • canvasIf a feed element has this capability, it renders a canvas app.
  • caseCommentIf a feed element has this capability, it has a case comment on the case feed.
  • contentIf a feed element has this capability, it has a file attachment.
  • dashboardComponentSnapshotRepresents both dashboard component snapshots and alerts you receive when a dashboard component value crosses a threshold.
  • emailMessageIf a feed element has this capability, it has an email message from a case.
  • enhancedLinkIf a feed element has this capability, it has a link that may contain supplemental information like an icon, a title, and a description.
  • linkIf a feed element has this capability, it has a link.
  • recommendationsIf a feed element has this capability, it has a recommendation.
  • recordSnapshotIf a feed element has this capability, it contains all the snapshotted fields of a record for a single create record event.
  • trackedChangesIf a feed element has this capability, it contains all changes to a record for a single tracked change event.
ConnectApi.FeedItemAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.FeedElementCapability is used.
ConnectApi.​FeedItem Class
These properties aren’t available in version 32.0 and later. Their functionality has moved to capabilities.
  • attachment
  • comments
  • isBookmarked​ByCurrentUser
  • isLikedBy​CurrentUser
  • likes
  • likesMessage
  • myLike
  • topics
ConnectApi.FeedItemTopicPage
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.TopicsCapability is used.
ConnectApi.FeedPoll
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.PollCapability is used.
ConnectApi.​GenericBundleCapability Class
If a feed element has this capability, the feed element has a group of other feed elements condensed into one feed element. This group is called a bundle.
This class is a subclass of ConnectApi.BundleCapability.
ConnectApi.LinkAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.LinkCapability is used.
ConnectApi.​LinkCapability
If a feed element has this capability, it has a link.
This new output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • urlLink URL. The URL can be to an external site.
  • urlNameDescription of the link.
ConnectApi.​PollCapability Class
If a feed element has this capability, it includes a poll.
This output class has these new properties:
  • choicesCollection of poll choices that make up the poll.
  • myChoiceId18-character ID of the poll choice that the current user has voted for in this poll. Returns null if the current user has not voted.
  • totalVoteCountTotal number of votes cast on the feed poll element.
ConnectApi.​QuestionAndAnswers​Capability Class
If a feed element has this capability, it has a question and comments on the feed element are answers to the question.
This output class is a subclass of ConnectApi.FeedElementCapability and has these properties:
  • bestAnswerThe comment selected as the best answer for the question.
  • bestAnswerSelectedByThe user who selected the best answer for the question.
  • canCurrentUserSelectOrRemoveBestAnswerIndicates whether current user can select or remove a best answer (true) or not (false).
  • questionTitleTitle for the question.
ConnectApi.​Recommendations​Capability
If a feed element has this capability, it has a recommendation.
This new output class is a subclass of ConnectApi.FeedElementCapability and has one property, items, which is a list of ConnectApi.AbstractRecommentation objects.
ConnectApi.RecordSnapShotAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.RecordSnapshotCapability is used.
ConnectApi.​RecordSnapshot​Capability
If a feed element has this capability, it contains all the snapshotted fields of a record for a single create record event.
This new output class is a subclass of ConnectApi.FeedElementCapability and has one property: recordView, which is a representation of the reord that contains metadata and data for easy display.
ConnectApi.​TopicsCapability Class
If a feed element has this capability, the context user can add topics to it. Topics help users organize and discover conversations.
This output class has these new properties:
  • canAssignTopicstrue if a topic can be assigned to the feed element, false otherwise.
  • itemsA collection of topics associated with this feed element.
ConnectApi.TrackedChangeAttachment
This class isn’t available in version 32.0 and later. In version 32.0 and later, ConnectApi.TrackedChangesCapability is used.
ConnectApi.​TrackedChanges​Capability
If a feed element has this capability, it contains all changes to a record for a single tracked change event.
This new output class is a subclass of ConnectApi.FeedElementCapability and contains one property, changes, which is a collection of feed tracked changes for the feed element.
This table describes how to migrate from earlier API versions to API version 32.0.
API versions 31.0 and earlier use... API version 32.0 uses...
ConnectApi.ApprovalAttachment ConnectApi.ApprovalCapability
ConnectApi.BasicTemplateAttachment ConnectApi.EnhancedLinkCapability
ConnectApi.CanvasTemplateAttachment ConnectApi.CanvasCapability
ConnectApi.CaseComment ConnectApi.CaseCommentCapability
ConnectApi.Comment.attachment ConnectApi.Comment.capabilities

This property holds a ConnectApi.CommentCapabilities object, which holds the capabilities associated with the comment.

ConnectApi.Comment.feedItem ConnectApi.Comment.feedElement
ConnectApi.CommentPage.comments ConnectApi.CommentPage.items
ConnectApi.ContentAttachment ConnectApi.ContentCapability
ConnectApi.DashboardComponentAttachment ConnectApi.DashboardComponentSnapshotCapability
ConnectApi.EmailMessage ConnectApi.EmailMessageCapability
ConnectApi.FeedItem.attachment ConnectApi.FeedElement.capabilities

This property holds a ConnectApi.FeedElementCapabilities object, which holds the capabilities associated with the feed element.

ConnectApi.FeedItem.comments capabilities.comments.page
ConnectApi.FeedItem.isBookmarkedByCurrentUser capabilities.bookmarks.isBookmarkedByCurrentUser
ConnectApi.FeedItem.isLikedByCurrentUser capabilities.chatterLikes.isLikedByCurrentUser
ConnectApi.FeedItem.likes capabilities.chatterLikes.page
ConnectApi.FeedItem.likesMessage capabilities.chatterLikes.likesMessage
ConnectApi.FeedItem.myLike capabilities.chatterLikes.myLike
ConnectApi.FeedItem.moderationFlags capabilities.moderation.moderationFlags
ConnectApi.FeedItem.topics capabilities.topics.items
ConnectApi.FeedItemAttachment

This class is abstract and is the superclass of the other attachment input classes.

ConnectApi.FeedElementCapability

This class is abstract and is the superclass of the other capability input classes.

ConnectApi.FeedItemTopicPage ConnectApi.TopicsCapability
ConnectApi.FeedPoll ConnectApi.PollCapability
ConnectApi.LinkAttachment ConnectApi.LinkCapability
ConnectApi.RecordSnapShotAttachment ConnectApi.RecordSnapshotCapability
ConnectApi.TrackedChangeAttachment ConnectApi.TrackedChangesCapability

Communities

Communities helps companies share information with their customers and partners.

ConnectApi.ArticleItem Class
Article item in question and answers suggestions.
This class has these properties:
  • idId of the article.
  • ratingThe rating of the article.
  • titleTitle of the article.
  • urlLinkLink URL of the article.
  • viewCountNumber of votes given to the article.
ConnectApi.​Chatter​Message Class
This class has one new property, sendingCommunity, that provides information about the community from which the message was sent.
ConnectApi.​Community Class
This class has one new property, nicknameDisplayEnabled, that specifies whether nicknames are displayed in the community.
ConnectApi.Features Class
This class has these new properties:
  • communityReputation—Specifies whether reputation is enabled for communities in the organization.
  • managedTopicsEnabled—Indicates access to the community home feed and the managed topic feed.
ConnectApi.ManagedTopic Class
Represents a managed topic in a community.
This class has these properties:
  • idID of managed topic.
  • managedTopicTypeType of managed topic.
  • topicInformation about the topic.
  • urlChatter REST API URL to the managed topic.
ConnectApi.ManagedTopicCollection Class
A collection of managed topics.
This class has these properties:
  • currentPageUrlChatter REST API URL identifying the current page.
  • managedTopicsList of managed topics.
ConnectApi.QuestionAndAnswersSuggestions Class
Question and answers suggestions.
This class has these properties:
  • articlesList of articles.
  • questionsList of questions.
ConnectApi.Reputation
Reputation for a user.
This new output class has these properties:
  • reputationLevelUser’s reputation level.
  • reputationPointsUser's reputation points, which can be earned by performing different activities in the community.
  • urlA Chatter REST API URL to the reputation.
ConnectApi.ReputationLevel Class
Reputation level for a user.
This new output class has these properties:
  • levelImageUrlURL to the reputation level image.
  • levelNameName of the reputation level.
  • levelNumberReputation level number, which is the numerical rank of the level, with the lowest level at 1. Administrators define the reputation level point ranges.
ConnectApi.Topic Class
This class has one new property, images, which represents images associated with the topic.
ConnectApi.TopicImages Class
This new class has these properties:
  • coverImageUrlURL to a topic’s cover image, which appears on the topic page. Both topics and managed topics can have cover images.
  • featuredImageUrlURL to a managed topic’s featured image, which appears wherever you feature it, for example, on the communities home page.
ConnectApi.User Class
This class has these new properties:
  • communityNicknameUser’s nickname in the community.
  • displayNameUser’s name that is displayed in the community. If nicknames are enabled, the nickname is displayed. If nicknames aren’t enabled, the full name is displayed.
  • reputation—Reputation of the user.

Data.com

Data.com is the solution for delivering leading business data inside Salesforce.

ConnectApi.DatacloudCompany Class
Information about a Data.com company.
ConnectApi.DatacloudCompanies Class
Lists all companies that were purchased in a specific order, page URLs, and the number of companies in the order.
ConnectApi.DatacloudContact Class
Information about a Data.com contact.
ConnectApi.DatacloudContacts Class
Lists all contacts that were purchased in the specific order, page URLs, and the number of contacts in the order.
ConnectApi.DatacloudOrder Class
Returns the orderId, purchase date, purchase count, and URLs to details about your order.
ConnectApi.DatacloudPurchaseUsage Class
Information about Data.com point usage for Monthly Users and List Pool Users.

Feed Elements and Bundles

See Feed Elements for general information about how feed elements and feed items have changed in API version 32.0.

ConnectApi.Bundle
This output class has been replaced by instances of the ConnectApi.GenericFeedElement class holding the ConnectApi.BundleCapability class.
Note

Note

Bundled posts are available through a pilot program. For information, contact Salesforce. During the pilot, bundles contain only feed-tracked changes.

ConnectApi.Feed
The feedItemsUrl property isn’t available in API version 32.0. Use the feedElementsUrl property.
ConnectApi.FeedDirectoryItem
The feedItemsUrl property isn’t available in API version 32.0. Use the feedElementsUrl property.
ConnectApi.FeedItemPage
This class isn’t available in version 32.0 and later. Use the ConnectApi.FeedElementPage property.
ConnectApi.​GenericFeedElement Class
A concrete implementation of the abstract ConnectApi.FeedElement class. This class has no properties other than the properties it inherits from ConnectApi.FeedElement.
This table describes how to migrate from earlier API versions to API version 32.0.
API versions 31.0 and earlier use... API version 32.0 uses...
ConnectApi.FeedItemPage ConnectApi.FeedElementPage
ConnectApi.Feed.feedItemsUrl ConnectApi.Feed.feedElementsUrl
ConnectApi.FeedDirectoryItem.feedItemsUrl ConnectApi.FeedDirectoryItem.feedElementsUrl

Files

Simplify file management for your users with file syncing, sharing, and collaboration.

ConnectApi.File Class
This output class has a new property, contentModifiedDate, which is a file-specific modified date, updated only for direct file operations, such as rename. Modifications to the file from outside of Salesforce can update this date.
ConnectApi.UserSettings Class
This class has these new properties:
  • fileSyncLimitMaximum number of files user can sync.
  • folderSyncLimitMaximum number of folders user can sync.

Recommendations

See Recommendations for general information about recommendations.

ConnectApi.AbstractRecommendation Class
This new class is a superclass of:
  • ConnectApi.EntityRecommendation Class
  • ConnectApi.NonEntityRecommendation Class
This class has these properties:
  • explanationThe recommendation explanation.
  • recommendationType—Specifies the type of record being recommended.
ConnectApi.AbstractRecommendationExplanation Class
This new class is a superclass of ConnectApi.RecommendationExplanation Class and contains these properties:
  • summarySummary explanation for recommendation.
  • type—Indicates the reason for the recommendation.
ConnectApi.EntityRecommendation Class
This new class represents a recommendation for a Salesforce entity, such as a file, group, record, or user, and is a subclass of ConnectApi.AbstractRecommendation Class.
This class has these properties:
  • actOnUrlChatter REST URL that can be used with a POST request to take action on a recommendation.
  • action—Specifies the action to take on a recommendation.
  • entityThe entity with which the receiver is recommended to take action.
ConnectApi.NonEntityRecommendation Class
This new class represents a recommendation for a non-Salesforce entity, such as an application, and is a subclass of ConnectApi.AbstractRecommendation Class.
This class has these properties:
  • displayLabelLocalized label of the non-entity object.
  • motifMotif for the non-entity object.
ConnectApi.RecommendationExplanation Class
This new class is a subclass of ConnectApi.AbstractRecommendationExplanation Class and has this property:
  • detailsUrlURL to explanation details or null if the recommendation doesn’t have a detailed explanation.