The hottest Salesforce Summer'23 Features For Developers. Part 1
Vimera | Andersen Group
Salesforce gives a box — we think it out. Salesforce customization to make your CRM work & increase customer engagement.
This article is prepared by our developer Alexey Kashirskiy
1. You Can No Longer Create New Process Builders
Probably the most expected thing in current Release is Process Builder retirement. To take the next step toward retiring Process Builder processes, you can no longer create new processes.
You can still activate, deactivate, and edit your existing Process Builder processes and continue to create automations in Flow Builder.
To test and create processes for use in managed packages, developer orgs still allow you to create processes.
Most Process Builder use cases are now supported in and work better in Flow. To facilitate migrating your processes, use the Migrate to Flow tool.
2. Implement Iterable on Set in Apex
The Set class now implements the Iterable interface, so you can directly iterate over sets.
Both sets and lists are iterable, allowing for more code reuse.
How: This example uses the String.join method with a Set, which was previously unsupported because Set didn’t implement Iterable.
Set<String> letters = new Set<String>{'a','b','c','d'};
System.debug(String.join(letters, '...'));
?
领英推荐
3. Configure Stack Depth of Chained Queueable Jobs
You can now set a maximum stack depth of Queueable jobs, overriding the default limit of five in Developer and Trial Edition orgs.
This feature also provides a larger safety mechanism to prevent run-away recursive jobs from consuming the daily Async Apex limit.
Enqueue jobs by using the new System.enqueueJob() overload. The method overload has an optional AsyncObjects parameter where you can specify the maximum stack depth and the minimum queue delay.
Use these methods in the new System.AsyncInfo class to determine the current and maximum stack depths and to get the minimum queueable delay.?
getCurrentQueueableStackDepth()
getMaximumQueueableStackDepth()
getMinimumQueueableDelayInMinutes()
hasMaxStackDepth()
?
4. Async SOQL Retirement
Async SOQL is a method for running SOQL queries when you can’t wait for immediate results.
These queries are run in the background over Salesforce big object data.
Async SOQL provides a convenient way to query large amounts of data stored in Salesforce. It is implemented as a RESTful API that enables you to run queries in the familiar syntax of SOQL. Because of its asynchronous operation, you can subset, join, and create more complex queries and not be subject to timeout limits.
This feature is being retired in the Summer ‘23 release.
If you are using Async SOQL queries, you will need to replace them with bulk API and batch Apex.
Nearshoring, Offshoring & Software Consulting Partner | Director at netibyte
1 年Very interesting article, thank you for sharing this information! Overall, it seems that Salesforce continues the trend of simplifying and improving their tools for developers. I'm looking forward to Part 2 of this series!
Once again I realize how smart our developers are ??