These classes, enums, and interfaces are new or have changes.
For more information on these enhancements, see the Apex Developer Guide and the Apex Reference Guide.
- ConnectApi Namespace
The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums. - CommercePayments Namespace
The CommercePayments namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - Database Namespace
The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - Invocable Namespace
The Invocable namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - IssueCreditMemo Namespace
The IssueCreditMemo namespace provides classes to create and apply credit memos against invoices or invoice lines based on dispute adjustments. - Salesforce Maps Namespace
The Salesforce Maps namespace has these new or changed classes, methods, interfaces, enums, or exceptions. - renew_assets_summary Namespace
The renew_assets_summary namespace provides classes that get details about renewable assets to create renewal opportunities. - RulesAppln Namespace
The RulesAppln namespace contains output classes that store details about a rules-based application of payments and credits. The rules are applied by using the applyPaymentsAndCreditsByRules invocable action. - runtime_industries_insurance Namespace
The runtime_industries_insurance namespace contains classes to control different options that you can use to manage insurance operations, such as create and update insurance quotes, generate insurance clauses, and run insurance rating. - System Namespace
The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
ConnectApi Namespace
The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums.
Many Connect REST API resource actions are exposed as static methods on Apex classes in the
ConnectApi namespace. These methods use other ConnectApi
classes to input and return information. The ConnectApi namespace is referred
to as Connect in Apex.
For the new and changed ConnectApi classes, methods, and enums, see ConnectApi (Connect in Apex): New and Changed Classes and Enums.
CommercePayments Namespace
The CommercePayments namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
Changed Enums
- Specify the payment failure category used to determine retry eligibility
- Use the new
RetryCategoryenum.
- Determines whether the payment operation can be retried based on the retry category
- Use the new
RetryDecisionenum.
- Specify the payment method type ID
- Use the new
PaymentMethodIdTypeenum.
Database Namespace
The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New Classes
- Paginate large SOQL query result sets
- Use the
fetchPage(),fetchDeleted(), andgetNumRecords()methods in thePaginationCursorclass. Use thegetNextIndex(),getNumDeletedRecords(),getRecords(), andisDone()methods in theCursorFetchResultclass.
Invocable Namespace
The Invocable namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New or Changed Methods in Existing Classes
- Return the specific version of a packaged custom action
- Use the
createCustomAction(type, namespace, name, version)method. - Return the specific version of a standard action
- Use the
createStandardAction(type, version)method.
IssueCreditMemo Namespace
The IssueCreditMemo namespace provides classes to create and apply credit memos against invoices or invoice lines based on dispute adjustments.
New Classes
- Creates a credit request for the specified invoice and amount along with dispute, category, and line-level credit details
- Use the new
CreditRequestInputRepresentationsclass constructors and properties. - Create a credit line request for the specified invoice line and amount
- Use the new
CreditLineRequestInputRepresentationsclass constructors and properties. - Get the result of a credit memo operation with additional details
- Use the new
CreditResponseOutputRepresentationsclass constructors and properties.
Salesforce Maps Namespace
The Salesforce Maps namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New or Changed Methods in Existing Classes
- VERSIONED BEHAVIOR CHANGE: The GetDistanceMatrix() method now returns four traffic window indexes instead of eight.
- To optimize routing data, the number of returned traffic window indexes has been
reduced from eight to four. This change reduces unnecessary data overhead while
maintaining routing performance. Use the
traffic_windowsproperty to access the updated index set, which now includes the consolidated start and end times for each window.
renew_assets_summary Namespace
The renew_assets_summary namespace provides classes that get details about renewable assets to create renewal opportunities.
New Classes
- Create renewal opportunities by specifying asset details and renewal pricing information
- Use the new
RenewalOpptyDetailclass constructors and properties. - Specify net unit price and quantity details for an asset to set as the sales price for renewal opportunities
- Use the new
RenewalPriceDetailclass constructors and properties.
RulesAppln Namespace
The RulesAppln namespace contains output classes that store details about a rules-based application of payments and credits. The rules are applied by using the applyPaymentsAndCreditsByRules invocable action.
New Classes
- Get details of the rule application
- Use the new
RulesApplicationResponseclass constructors and properties. - Get output of the applyPaymentsAndCreditsByRules invocable action
- Use the new
RulesApplicationSummaryResponseclass constructors and properties. - Get error code and error message details
- Use the new
RulesApplicationErrorResponseclass constructors and properties.
runtime_industries_insurance Namespace
The runtime_industries_insurance namespace contains classes to control different options that you can use to manage insurance operations, such as create and update insurance quotes, generate insurance clauses, and run insurance rating.
New Classes
- Configure options for the add-eligible-clauses operation on an insurance product
- Use the new
AddEligibleInsuranceClausesOptionsclass constructors and properties. - Configure options for the create-insurance-quote operation
- Use the new
CreateInsuranceQuoteOptionsclass constructors and properties. - Configure options for creating insurance rating
- Use the new
CreateInsuranceRatingOptionsclass constructors and properties. - Configure options for generating insurance clauses
- Use the new
GenerateInsuranceClausesOptionsclass constructors and properties. - Configure options for updating an existing insurance quote
- Use the new
UpdateInsuranceQuoteOptionsclass constructors and properties.
System Namespace
The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
New or Changed Methods in Existing Classes
- Create an Apex pagination cursor to paginate large SOQL query result sets
- Use the
Database.getPaginationCursor()andDatabase.getPaginationCursorWithBinds()methods. - Get the number of Apex cursors that are created and their upper bounds
- Use the
Limits.getApexCursors()andLimits.getLimitApexCursors()methods. - Get the number of Apex pagination cursors that are created and their upper bounds
- Use the
Limits.getApexPaginationCursors()andLimits.getLimitApexPaginationCursors()methods.
- Get the number of rows returned by an Apex pagination cursor and their upper bounds
- Use the
Limits.getApexPaginationCursorRows()andLimits.getLimitApexPaginationCursorRows()methods.
- Specify the number of oldest, completed async jobs in your org to purge
- Use the new method overload for
System.purgeOldAsyncJobs().
- Use improved PDF rendering
- The
Blob.toPdf()method now uses the same PDF rendering service used by Visualforce.