Discover the new Summer ’22 release features for admins and developers! We know that each release brings with it lots of amazing new functionality, and there can be a lot to digest. With Learn MOAR, we’re packaging up the release and bringing it to you in an easy-to-digest format in blogs, videos, and more.
Dive into Summer ’22
It’s easy to get started!
- Dig into Trailhead trailmixes that include key release highlights for admins or developers (or both)
- Follow along each day as we highlight all the great new features on both the Salesforce Admins and Salesforce Developers blogs
- Register for the Release Readiness Live broadcast on May 20, 2022 to hear about new features from product experts and see highlights in action
Follow and complete a Learn MOAR Summer ’22 trailmix for admins or developers by July 31, 2022, 11:59 p.m. PT to earn a special community badge and enter for a chance to win one of five $200 USD Salesforce Certification vouchers. Restrictions apply. Learn how to participate and review the Official Rules by visiting the Trailhead Quests page.
Generally Available features
The Salesforce Summer ’22 release is upon us, and it comes with great new features for developers. We’ve put together a list of features that we think you should look out for, including these that are now Generally Available:
Light DOM allows you to attach your Lighting Web Components to a page’s host element instead of the default shadow tree. This is a huge unlock for customers who need to expose LWCs to third-party libraries and apply custom styles in a more traditional way.
The new Alert Confirm and Prompt modules in Lightning Web Components give you the ability to safely create notifications from your components. Chrome and Safari plan to end support for cross-origin use of the window.alert()
, window.confirm()
, and window.prompt()
native APIs. Each new module creates a modal that functions like its API counterpart and works in cross-origin iframes.
The Bulk API has received some great updates in this release that give you more generous Apex limits, including changing the CPU time limit from 10 seconds to 60 seconds. Check out the rest of the API updates for more.
You can publish and subscribe to platform events using the Pub/Sub API, a secure and highly scaleable solution based on gRPC. Use one of 11 supported programing languages and fine-tune the number of results you receive with subscription flow control.
External Services have received a number of great updates as well. Before, you could only call external services from Flow or Einstein Bots, but now you can call them directly from Apex.
Feature enhancements
We’ve continued to update the Lightning datatable base component and it now allows you to load large datatables faster with virtual rendering. You can set the render mode on the component to virtualize the data instead of rendering it all on load to enable smooth scrolling.
Preview and Pilot features
Currently in Pilot — you can securely connect to Amazon Athena and perform interactive queries from Salesforce. This will let you take advantage of Amazon Athena’s capability to analyze structured data in a number of formats.
Currently in Developer Preview — you can build components in mixed shadow mode. Now that all major browsers support shadow DOM, you gain the speed and efficiency of using the native shadow as much as possible in your app. In cases where native shadow DOM is not supported, mixed shadow mode will use the current synthetic shadow polyfill.
Lastly, there is now a Beta to secure Apex code with user mode database operations. This allows you to declare if Apex runs database operations in user mode or in system mode. Field-level security (FLS) and object permissions of the running user are respected in user mode, unlike in system mode. User mode always applies sharing rules; in system mode they’re controlled by the class sharing keywords.
You can indicate the mode of the operation by using WITH USER_MODE
or WITH SYSTEM_MODE
in your SOQL queries. This example specifies user mode:
Database operations can specify user or system mode. This example inserts a new account in user mode:
Learn MOAR this week
Product Managers and the Developer Relations team are back to share the latest features and functionality in Summer ‘22. To help you develop faster, new content from Developer Relations will cover their favorite new features. Also, be sure to check out Release Readiness Live on Friday, May 20, 2022 at 9:00 a.m. PST. Lastly, keep an eye on the Salesforce Developers blog every day this week for more posts on Summer ’22!
To learn even more, check out the Summer ’22 trailmix.
About the author
Stephan Chandler-Garcia is a Senior Developer Evangelist at Salesforce. He focuses on application development, security, and Experience Cloud. You can follow him on Twitter @stephanwcg.