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.
-
Create, delete, and get information about an action link group definition; get information about an action link group; get action link diagnostic information.
-
Access information about announcements and post announcements.
-
Access and update activation information of a bot version.
-
Get, create, update, and delete Data 360 activations.
-
CdpActivationExternalPlatform Class
Get Data 360 activation external platforms.
-
Get, create, and update Data 360 activation targets.
-
Get activation records from Data 360 Audience Data Model Objects (DMOs).
-
Create, delete, get, run, and update Data 360 calculated insights.
-
Get database schemas for a Data 360 connection.
-
Get Data 360 data spaces.
-
Run Data 360 data streams.
-
Create, delete, get, run, and update Data 360 identity resolution rulesets.
-
Make a machine-learning prediction with Data 360.
-
Get Data 360 metadata and query data.
-
Create, delete, get, publish, and update Data 360 segments.
-
Access information about followers and subscriptions for records.
-
Chatter favorites give you easy access to topics, list views, and feed searches.
-
Get, post, and delete feed elements, likes, comments, and bookmarks. You can also search feed elements, share feed elements, and vote on polls.
-
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.
-
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.
-
Access information about users, such as activity, followers, subscriptions, files, and groups.
-
Create and update Contract Lifecycle Management (CLM) contracts using object ID.
-
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.
-
Get, create, update, calculate, and delete carts. Get cart items, add items to carts, update and delete cart items.
-
Get products, product categories, and product category paths.
-
CommerceCatalogManagement Class
Create or update a composite product. Create a variation product.
-
Evaluate promotions for Commerce orders. Get coupon code redemption usage.
-
Get sort rules for the live search index. Get product search suggestions. Search products.
-
CommerceSearchConnectFamily Class
Search products by search term or category in a webstore.
-
Get indexes. Get index logs. Create an index of a product catalog.
-
Get product prices.
-
Get, create, update, and delete wishlists. Add wishlists to carts. Get wishlist items, add items to wishlists, and delete wishlist items.
-
Get information about Experience Cloud sites in your org.
-
Get information about flagged feed items and comments in an Experience Cloud site. Add and remove flags from comments and feed items.
-
Access Files Connect repositories and their files and folders.
-
ConversationApplicationDefinition Class
Access information about a conversation application definition.
-
Purchase Data.com contact or company records, and retrieve purchase information.
-
Get a list of prompt templates and generate LLM responses for prompt templates.
-
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.
-
Get, set and crop, and delete employee banner photos and photos.
-
Preview and submit cart to exchange orders.
-
ExtendedCommerceDelivery Class
Access information about delivery estimation.
-
Access information about integration with external email services, such as sending email within Salesforce through an external email account.
-
Get externally managed accounts.
-
Preview and create shifts from a pattern.
-
Get the status and available actions for flow approval processes.
-
Fulfill orders in Order Management.
-
IBusinessObjectivesAndRecsFamily Class
Get and patch business objectives, or goals. Get, create, patch, and update recommended actions for business objectives.
-
Get information about trending articles in Experience Cloud sites.
-
Create and update service appointments.
-
Clone managed content. Create and get managed content. Create, delete, or update a digital asset management (DAM) provider instance. Bulk delete managed content. Delete and replace variants. Get channels. Get DAM providers. Get targets that managed content space folders can be shared with. Get and update targets that managed content space folders are shared with. Expose managed content as metadata. Publish and unpublish content.
-
Get managed content channels. Create, get, update, or delete a managed content channel.
-
Get channels. Get collection items. Get managed content. Get a managed content rendition.
-
Create, get, update, or delete a managed content space. Get channels in a managed content space. Add or remove channels from a managed content space.
-
Get managed topics in an Experience Cloud site. Create, delete, and reorder managed topics.
-
Get, save, and submit a microsites marketing integration form for an Experience Cloud site.
-
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.
-
Export and purge mission activity for users. Get a user’s mission progress. Update mission activity counts for users.
-
Create, refresh, get, delete, replace, and update credentials. Create and get external credentials. Create and get named credentials. Create, get, delete, and update external auth identity providers. Get the URL for the OAuth token flow for an external credential.
-
Get navigation menu items for an Experience Cloud site.
-
Execute recommendation strategies, get recommendations, manage recommendation reactions.
-
OmnichannelInventoryService Class
Route orders to inventory locations in Order Management.
-
Get products with return rates, get text classified into different classifications using text analysis, and capture the return reasons from external sources based on the product ids.
-
Fetch files associated with optimization requests for Enhanced Scheduling and Optimization. Requires Field Service to be enabled for the org and the running user to have Field Service enabled.
-
Get orchestration instances.
-
Work with payments in Order Management.
-
Work with orders in Order Management.
-
Create Order Summaries in Order Management.
-
Access information about an org.
-
PardotBusinessUnitContext Class
Get the Pardot business units the context user has access to.
-
Authorize a payment, capture an authorized payment, and refund an authorized payment.
-
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.
-
Create tickets to fulfill orders.
-
Access question and answers suggestions.
-
Get and reject Chatter, custom, and static recommendations. Create, get, update, and delete custom recommendation audiences, custom recommendation definitions, and scheduled custom recommendations.
-
RecordFilterCriteriaFamily Class
Filter records on recordset filter criteria.
-
Access information about record motifs, which are small icons used to distinguish record types in the Salesforce UI.
-
Get picklist values by record type.
-
Register a guest buyer for a webstore using an account ID, enabling a guest buyer to order on behalf of another buyer.
-
Perform functions related to repricing orders in Order Management.
-
Process ReturnOrders in Order Management, limited to 2,000 requests per hour.
-
Route orders to inventory locations in Order Management.
-
Access information about Automated Activity Capture, which is available in Einstein and Salesforce Inbox.
-
Search objects using keywords or a natural language query.
-
Search an Experience Cloud site.
-
Get predictions on Salesforce objects.
-
Manage information about social accounts or fan pages for social networks.
-
Send survey invitations by email.
-
Apply or cancel tax.
-
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.
-
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.
-
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.
-
Some
ConnectApimethods take arguments that are instances ofConnectApiinput classes. -
Most
ConnectApimethods return instances ofConnectApioutput classes. -
Enums specific to the
ConnectApinamespace. -
The
ConnectApinamespace contains exception classes. -
The
ConnectApinamespace contains a utility class. -
Use the Salesforce Release Notes to learn about the most recent updates and changes to the ConnectApi namespace in Apex.