Apex: New and Changed Classes

These classes are new or have changed.

Changed Apex Classes

These existing classes have new or changed methods or constants.
Auth.SessionManagement Class
New Methods
finishLoginFlow()
Finish the Visualforce Page login flow process, and redirect the user to the default home page.
finishLoginFlow(startUrl)
Finish the Visualforce Page login flow process, and redirect the user to the specified start URL.
Database.LeadConvert Class
New Method
setOpportunityId(opportunityId)
Sets the ID of the opportunity into which the lead is merged. This value is required only when updating an existing opportunity.
Flow.Interview Class
The Interview object now supports namespaced flows with this format: Flow.Interview.namespace.flowName.
New Methods
createInterview(flowName, inputVariables)
Creates an interview for a flow.
createInterview(namespace, flowName, inputVariables)
Creates an interview for a namespaced flow.
Messaging.SingleEmailMessage Class
New Method
getTemplateName()
Returns the name of the template used to create the email.
Metadata.AnalyticsCloudComponentLayoutItem Class
New Property
showHeader
If true, includes the dashboard’s header bar. If false, the dashboard appears without a header bar.
Metadata.SidebarComponent Class
New Properties
createAction
If the component is a lookup field, the name of the quick action used to create a record.
enableLinking
If the component is a lookup field, lets users associate a record with this field.
updateAction
If the component is a lookup field, the name of the quick action used to update a record.
System.List Class
New Methods
contains(listElement)
Returns true if the list contains the specified element.
indexOf(listElement)
Returns the index of the first occurrence of the specified element in this list. If this list does not contain the element, returns -1.
System.PageReference Class
New Method
renderStoredEmailTemplate(templateId, whoId, whatId, attachmentRetrievalOption, updateEmailTemplateUsage)
A new override of this method, which contains a new parameter, updateEmailTemplateUsage. This parameter specifies whether the usage field in the EmailTemplate record is updated upon successful rendering.