Share
Embed
Summer 24 for Developers
Slide deck from my presentation to the London Salesforce Developers Trailblazer Community Group on the new features in the Summer 24 Salesforce release.
Keir Bowden
May 23, 2024
Transcript
26 slides
-
© 2023 Credera Enterprises Company, LLC. All rights reserved. Summer
24 for Developers 2024 -
CONFIDENTIAL 2 About Me CTO Salesforce at Credera 16 years
in Salesforce MVP HoF, CTA -
CONFIDENTIAL 3 General New setup domain ▪ Lightning Experience and
Classic, all editions ▪ Applied on a rolling basis ▪ Add *.salesforce-setup.com to allow lists Google Chrome Storage Partitioning ▪ Enabled in Summer ‘24 ▪ Test any solutions that rely on localStorage ▪ Opt out until 3rd Sep 2024: User Interface -> Disable Google Chrome Partitioning for Salesforce Domains -
CONFIDENTIAL 7 Lightning App Builder – Align Fields with Blank
Spaces Blank space Blank space + align fields horizontally Requires dynamic forms Blank space counts against 100 fields/region limit -
CONFIDENTIAL 9 Setup Add new custom fields to dynamic forms-enabled
pages ▪ New step in field creation ▪ Last field in first field section ▪ Only appears if dynamic forms-enabled pages exist Dynamic forms-enabled information on custom fields -
CONFIDENTIAL 10 Lightning Web Components Component level versioning ▪ Update
to API 61.0 for Summer ‘24 features Component Lifecycle Hooks use Native Browser APIs ▪ Synthetic polyfill for older browsers Native DOM/Design System Architecture changes ▪ Unsupported customisations may break -
CONFIDENTIAL 11 Lightning Web Components – ElementInternals Web API Requires
API 61.0 Light and Native Shadow DOM Accessible Rich Internet Applications (ARIA) support Form association ▪ Submit component state as part of a form ▪ Participate in form lifecycle – form reset, element disabled, restore state ▪ Participate in form validation https://webkit.org/blog/13711/elementinternals-and-form-associated-custom-elements/ -
CONFIDENTIAL 12 Lightning Web Components – URL-Addressable Components <targets> <target>lightning__UrlAddressable</target
</targets> import { LightningElement } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; export default class NavToComponentWithState extends NavigationMixin(LightningElement) { navigateToComponent() { this[NavigationMixin.Navigate]({ type: 'standard__component', attributes: { componentName: 'c__myComponent', }, state: { c__propertyValue: '2000', }, }); } } this.currentPageRef.state.c__propertyValue; -
CONFIDENTIAL 13 Lightning Web Components – Utility Bar API Import
lightning/platformUtilityBarApi ▪ Methods ▪ wire adapter To use component ▪ Add lightning__utilityBar target -
CONFIDENTIAL 14 Apex – Data Cloud Security DMOs are accessible
from all spaces in system mode Read-only object checks supported if user has access to data space, applies to : ▪ WITH USER_MODE ▪ WITH SECURITY_ENFORCED ▪ Security.StripInaccessible() ▪ Describe calls No field level security or record access control Mock SOQL Query Responses System.SoqlStubProvider class ▪ Override handleSoqlQuery() method -
CONFIDENTIAL 15 Apex More secure compilation from Compile all classes
▪ Now errors if code references unlicensed objects ▪ Consistent with metadata/on-demand compilation FOR UPDATE locks released by rollback to savepoint ▪ Generates entry in debug log ▪ Includes most recently locked entity type Apex Exceptions Emails now include ▪ Org name ▪ User name ▪ My Domain name FOR_UPDATE_LOCKS_RELEASE | FOR UPDATE locks released due to a savepoint rollback. The most recent lock was Account. -
CONFIDENTIAL 16 Apex – 5 Levels of Parent-Child in SOQL
List accts = [SELECT Name, (SELECT LastName, (SELECT AssetLevel, (SELECT Description, (SELECT LineItemNumber FROM WorkOrderLineItems) FROM WorkOrders) FROM Assets) FROM Contacts) FROM Account]; Each subquery consumes an aggregate query (limit 300) -
CONFIDENTIAL 17 API API versions 21.0 – 30.0 Retirement ▪
Bulk, SOAP, REST ▪ Release update ▪ Enforced Summer ’25 (delayed from Summer ’23) ▪ Upgrade your applications! -
CONFIDENTIAL 18 Packaging Async Validation for Package Creation ▪ Creates
version and defers validations ▪ Install and test faster ▪ Useful for CI Shorten install time in scratch orgs ▪ FeatureEnforcement skip handler ▪ Admins can turn off features that would would break app! -
CONFIDENTIAL 19 Scratch Org Snapshots Point in time copy of
scratch org Includes : ▪ Installed Packages ▪ Configuration Metadata ▪ Data Enable in Dev Hub Manage through CLI ▪ Separate scratch org definition file Expires after 90 days -
CONFIDENTIAL 24 Flow Other Run active version of subflow ▪
API 61.0 required ▪ Earlier API runs latest version Categories/Subcategories -
25 Summer 24 for Everyone Salesforce Summer ’24 Release Webinar
• Date and time: Wednesday, 29th May, 4pm – 5pm (BST) • Hosted by: Keir Bowden • Location: Online SCAN TO SIGN UP