

Get the technical readout from our Director of Technology
By Mark Pond
Salesforce’s Spring ’24 release is quickly approaching and the eagerly anticipated release notes are here. There is a lot of new and updated functionality this release and you’re encouraged to read the official release notes to check out all that is new and improved to make the platform a more productive place for you, your users and our ISV partners alike.
Whether you are an ISV, an SI partner or in charge of your own enterprise’s org landscape, there is something in this release for everyone. Let’s jump into a few of this release’s features and see how you and your users may benefit from implementing them!
Dynamic Forms with Related Object Fields
Dynamic forms pages now support display of information from related objects fields! This alleviates the need for leveraging formula fields on records to display information from a parent record. This feature supports traversing two relationship levels and does not yet support polymorphic relationship fields.
Add Fields from Related Objects to Dynamic Forms-Enabled Pages

Migrate to Flow Tool updated for Migration of More Processes
The ‘Migrate to Flow’ tool has been updated and now supports partial migration for most actions. It does not yet support migrating invocable actions but it will identify which actions need to be further configured to finish your migration.


Logging & Monitoring
You can now add observability and monitor your custom component events with the component instrumentation API. It allows you to log messages to a new EventLogFile type called Lightning Logger Event to use with Event Monitoring.

Implementation example:
Lightning Record Picker
The newly updated lightning-record-picker component provides an out of the box method to search and select records from the org. It provides up to 100 records in the search results and thanks to the GraphQL wire adapter it is possible to use it in an offline scenario as well!

New API Distortion Changes in Lightning Web Security
LWS includes a few security updates as well as new ESLint rules to match the distortions for early warnings that you are wading into unsupported waters. The new distortions are documented in the LWS Distortion Viewer.
New distortions:
- Selection.prototype.collapse
- Selection.prototype.extend
- Selection.prototype.selectAllChildren
- Selection.prototype.setBaseAndExtent
- Selection.prototype.setPosition event
This distortion was changed.
- Document.prototype.execCommand
These distortions and associated ESLint rules were removed.
- Element.prototype.attributes getter
- HTMLIFrameElement.prototype.allowPaymentRequest
- HTMLIFrameElement.prototype.csp
- HTMLIFrameElement.prototype.featurePolicy
- HTMLIFrameElement.prototype.referrerPolicy
Null Coalescing Operator in Apex
The null coalescing operator (??) is now available in Apex and should provide cleaner and easier to maintain code where null reference checks have been performed in your code. It is similar to the safe navigation operator (?.), it returns the left-hand argument if the left-hand argument isn’t null. Otherwise, it returns the right-hand argument.
Before the Null Coalescing Operator, you used:
With the Null Coalescing Operator, use:
Remove Custom Metadata Type Records from a Second-Generation Managed Package
Second generation managed packages now support the removal of custom metadata type records!
After you remove the protected and public records from a custom metadata type records from a package, what happens to those records in the subscriber org depends on the record visibility. If the records are visible to the subscriber org, they’re marked as deprecated. If the records aren’t visible to the subscriber org, they’re deleted.
This feature requires approval from Salesforce, log a case in the partner community to enable the feature.
ISV Partners can now Log Custom Interactions in AppExchange App Analytics
No longer do your custom components’ apex classes need to have custom methods to add details to the App Analytics log output simply to track how subscribers interact with and flow through your app’s components. Implementing the new IsvPartners.AppAnalytics.logCustomInteraction apex method allows you to instrument your component and gather information about the user’s interaction with your component!
AppAnalytics class and methods documentation
Log Custom Interactions in AppExchange App Analytics
About Mark:
As Director of Technology at CodeScience, Mark is responsible for the technical strategy of the organization. With 13 years dedicated focus on the Salesforce platform, Mark has designed and delivered 60+ products as an architect, provided technical advisory to over 100 clients, including Salesforce, as an engineering leader, leading the tech strategy for 75+ amazing architects and engineers to deliver products for SaaS and enterprise companies on the Salesforce platform.