Apex: New and Changed Items

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 RetryCategory enum.
Determines whether the payment operation can be retried based on the retry category
Use the new RetryDecision enum.
Specify the payment method type ID
Use the new PaymentMethodIdType enum.

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(), and getNumRecords() methods in the PaginationCursor class. Use the getNextIndex(), getNumDeletedRecords(), getRecords(), and isDone() methods in the CursorFetchResult class.

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 CreditRequestInputRepresentations class constructors and properties.
Create a credit line request for the specified invoice line and amount
Use the new CreditLineRequestInputRepresentations class constructors and properties.
Get the result of a credit memo operation with additional details
Use the new CreditResponseOutputRepresentations class 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_windows property 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 RenewalOpptyDetail class 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 RenewalPriceDetail class 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 RulesApplicationResponse class constructors and properties.
Get output of the applyPaymentsAndCreditsByRules invocable action
Use the new RulesApplicationSummaryResponse class constructors and properties.
Get error code and error message details
Use the new RulesApplicationErrorResponse class 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 AddEligibleInsuranceClausesOptions class constructors and properties.
Configure options for the create-insurance-quote operation
Use the new CreateInsuranceQuoteOptions class constructors and properties.
Configure options for creating insurance rating
Use the new CreateInsuranceRatingOptions class constructors and properties.
Configure options for generating insurance clauses
Use the new GenerateInsuranceClausesOptions class constructors and properties.
Configure options for updating an existing insurance quote
Use the new UpdateInsuranceQuoteOptions class 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() and Database.getPaginationCursorWithBinds() methods.
Get the number of Apex cursors that are created and their upper bounds
Use the Limits.getApexCursors() and Limits.getLimitApexCursors() methods.
Get the number of Apex pagination cursors that are created and their upper bounds
Use the Limits.getApexPaginationCursors() and Limits.getLimitApexPaginationCursors() methods.
Get the number of rows returned by an Apex pagination cursor and their upper bounds
Use the Limits.getApexPaginationCursorRows() and Limits.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.