Apex: New and Changed Items

These classes, enums, and interfaces are new or have changes.

For more information, refer to the Apex Developer Guide.

Auth Namespace

The Auth namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

New or Changed Methods in Existing Classes

Get the single sign-on URL for a community subdomain
Use the new getAuthProviderSsoDomainUrl(communityUrl, startUrl, developerName) method in the Auth.AuthConfiguration class.

Reports Namespace

The Reports namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

New or Changed Methods in Existing Classes

Obtain the report filter type
Use the new getFilterType(reports.ReportFilterType) method in the reports.ReportFilter class.
Set the report filter type
Use the new setFilterType(reports.ReportFilterType) method in the reports.ReportFilter class.
Obtain the string representation of the report filter type
Use the new toString() method in the reports.ReportFilter class.

New Enums

Specify the type of report filter used by the getFilterType(reports.ReportFilterType) and setFilterType(reports.ReportFilterType) methods
Use the ReportFilterType enum.

Schema Namespace

The Schema namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

New or Changed Methods in Existing Classes

Obtain the describe sObject result for a field, determining whether to load child relationships or not based on the parameter value.
Use the new getDescribe(options)method in the Schema.SObjectType class.

System Namespace

The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

New or Changed Methods in Existing Classes

Specify a redirect code to control page URL redirects
Use the new setRedirectCode(redirectCode) method in the PageReference class to specify a redirectCode of 301, 302, 303, 307, or 308. The new getRedirectCode() method returns the PageReference redirectCode.
Obtain the string representation of the List collection type
Use the new toString() method in the System.List class.
Obtain the string representation of the Map collection type
Use the new toString() method in the System.Map class.
Obtain the string representation of the Set type
Use the new toString() method in the System.Set class.
Obtain the string representation of a Cookie’s SameSite attribute
Use the new getSameSite() method in the System.Cookie class.