Apex Reference Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
SmartDataDiscovery Class
ConnectApi Enums
ConnectApi Exceptions
ExternalService Namespace
Newer Version Available
ConnectApi Namespace
The ConnectApi namespace (also called Connect in
Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in
Apex to create custom experiences in Salesforce.
For information about working with the ConnectApi classes, see Connect in Apex.
-
ActionLinks Class
Create, delete, and get information about an action link group definition; get information about an action link group; get action link diagnostic information. -
Announcements Class
Access information about announcements and post announcements. -
BotVersionActivation Class
Access and update activation information of a bot version. -
CdpQuery Class
Get Customer Data Platform metadata and query Customer Data Platform data. -
CdpSegment Class
Create, delete, get, and update Customer Data Platform segments. -
Chatter Class
Access information about followers and subscriptions for records. -
ChatterFavorites Class
Chatter favorites give you easy access to topics, list views, and feed searches. -
ChatterFeeds Class
Get, post, and delete feed elements, likes, comments, and bookmarks. You can also search feed elements, share feed elements, and vote on polls. -
ChatterGroups Class
Information about groups, such as the group’s members, photo, and the groups the specified user is a member of. Add members to a group, remove members, and change the group photo. -
ChatterMessages Class
Get, send, search, and reply to private messages. You can also get and search private conversations, mark conversations as read, and get a count of unread private messages. -
ChatterUsers Class
Access information about users, such as activity, followers, subscriptions, files, and groups. -
Clm Class
Create and update Contract Lifecycle Management (CLM) contracts using object ID. -
CommerceBuyerExperience Class
Create, delete, or get commerce addresses. Get order delivery group, order item, order shipments, shipment items, and order summaries. Get adjustments for order items and order summaries. -
CommerceCart Class
Get, create, update, and delete carts. Get cart items, add items to carts, update and delete cart items. -
CommerceCatalog Class
Get products, product categories, and product category paths. -
CommerceSearch Class
Get sort rules for the live search index. Get product search suggestions. Search products. -
CommerceSearchSettings Class
Get indexes and create an index of a product catalog. -
CommerceStorePricing Class
Get product prices. -
CommerceWishlist Class
Get, create, update, and delete wishlists. Add wishlists to carts. Get wishlist items, add items to wishlists, and delete wishlist items. -
Communities Class
Get information about Experience Cloud sites in your org. -
CommunityModeration Class
Get information about flagged feed items and comments in an Experience Cloud site. Add and remove flags from comments and feed items. -
ContentHub Class
Access Files Connect repositories and their files and folders. -
ConversationApplicationDefinition Class
Access information about a conversation application definition. -
Datacloud Class
Purchase Data.com contact or company records, and retrieve purchase information. -
EmailMergeFieldService Class
Extract a list of merge fields for an object. A merge field is a field you can put in an email template, mail merge template, custom link, or formula to incorporate values from a record. -
EmployeeProfiles Class
Get, set and crop, and delete employee banner photos and photos. -
ExternalEmailServices Class
Access information about integration with external email services, such as sending email within Salesforce through an external email account. -
ExternalManagedAccount Class
Get externally managed accounts. -
FieldService Class
Preview and create shifts from a pattern or filter fields on recordset filter criteria. -
FulfillmentOrder Class
Fulfill orders in Order Management. -
Knowledge Class
Get information about trending articles in Experience Cloud sites. -
LightningScheduler Class
Create and update service appointments. -
ManagedContent Class
Get managed content versions. Get a managed content space. -
ManagedContentDelivery Class
Get collection items. Get collection metadata. Get a managed content channel. Get managed content. -
ManagedTopics Class
Get managed topics in an Experience Cloud site. Create, delete, and reorder managed topics. -
MarketingIntegration Class
Get, save, and submit a microsites marketing integration form for an Experience Cloud site. -
Mentions Class
Access information about mentions. A mention is an “@” character followed by a user or group name. When a user or group is mentioned, they receive a notification. -
Missions Class
Export and purge mission activity for users. Get a user’s mission progress. Update mission activity counts for users. -
NamedCredentials Class
Create, get, update, and delete credentials. Get external credentials. Get the URL for the OAuth token flow for an external credential. -
NavigationMenu Class
Get navigation menu items for an Experience Cloud site. -
NextBestAction Class
Execute recommendation strategies, get recommendations, manage recommendation reactions. -
OmnichannelInventoryService Class
Route orders to inventory locations in Order Management. -
Orchestration Class
Get orchestration instances. -
OrderPaymentSummary Class
Work with payments in Order Management. -
OrderSummary Class
Work with orders in Order Management. -
OrderSummaryCreation Class
Create Order Summaries in Order Management. -
Organization Class
Access information about an org. -
PardotBusinessUnitContext Class
Get the Pardot business units the context user has access to. -
Payments Methods
Authorize a payment, capture an authorized payment, and refund an authorized payment. -
Personalization Class
Get assigned personalization audiences that match the user context. Create, get, update, and delete an audience. Get personalization targets that match the user context, based on the assigned audiences that include the user. Create and update targets. Get and delete a target. -
QuestionAndAnswers Class
Access question and answers suggestions. -
Recommendations Class
Get and reject Chatter, custom, and static recommendations. Create, get, update, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations. -
Records Class
Access information about record motifs, which are small icons used to distinguish record types in the Salesforce UI. -
Repricing Class
Perform functions related to repricing orders in Order Management. -
ReturnOrder Class
Process ReturnOrders in Order Management. -
Routing Class
Route orders to inventory locations in Order Management. -
SalesforceInbox Class
Access information about Automated Activity Capture, which is available in Einstein and Salesforce Inbox. -
Sites Class
Search an Experience Cloud site. -
SmartDataDiscovery Class
Get predictions on Salesforce objects. -
SocialEngagement Class
Manage information about social accounts or fan pages for social networks. -
Surveys Class
Send survey invitations by email. -
TaxPlatform Class
Apply or cancel tax. -
Topics Class
Access information about topics, such as their descriptions, the number of people talking about them, related topics, and information about groups contributing to the topic. Update a topic’s name or description, merge topics, and add and remove topics from records and feed items. -
UserProfiles Class
Access user profile data. The user profile data populates the profile page (also called the Chatter profile page). This data includes user information (such as address, manager, and phone number), some user capabilities (permissions), and a set of subtab apps, which are custom tabs on the profile page. -
Zones Class
Access information about Chatter Answers zones in your organization. Zones organize questions into logical groups, with each zone having its own focus and unique questions. -
ConnectApi Input Classes
Some ConnectApi methods take arguments that are instances of ConnectApi input classes. -
ConnectApi Output Classes
Most ConnectApi methods return instances of ConnectApi output classes. -
ConnectApi Enums
Enums specific to the ConnectApi namespace. -
ConnectApi Exceptions
The ConnectApi namespace contains exception classes.