TrailblazerDX (formerly known as TrailheaDX) is an event aimed at Salesforce Developers, Architects, Admins and anyone involved within the Salesforce Ecosystem. Of course, we at CaseNine stay up to date with all Salesforce developments, with a particular emphasis on both technical developments and CPQ. Theodoor van Donge, Lead Software Engineer at CaseNine is explaining more about Dynamic Interactions in LWC.
One of the topics in the spotlight at TrailblazerDX was LWC. There are three ways to communicate between Lightning Web Components: DOM events, Lightning Message Service (LMS) and Dynamic Interactions (DI). Dynamic Interactions will become available in the Spring ’22 Release.
There are various highlights to report about LWC. We have listed the three main points below.
Event communication between LWC via Lightning App Builder. Admins can now also use Dynamic Interactions to make the Lightning Web Components dynamic. If a button is clicked in an LWC component, you can now link a response to this event in another component.
When you are developing LWC components, you can declare the definition of the Dynamic Interaction Event. An example is shown below.
Example: js-meta.xml configuration file for an Account List source component. It includes an
itemselected
event, and its schema includes apiName
and recordId
as defined in the .js file (source).
Developers can now use Dynamic Interactions to edit LWC components with updates/events from other page components. For example: the user clicks on a button in component A, but something also has to change in component B. The two can now be linked together by a non-developer by means of Dynamic interactions. This does require some preparation: when making the LWC component, the developer must have added the declaration and publish step for the event.
Do you want to know more about building components that communicate with Dynamic Interactions? View the Salesforce blogpost here.
Do you want to know more about the benefits of a CPQ solution in practice? Read more background information here or contact us directly for a consultation.
Stay up to date on all CPQ and Energy and Telecom news and trends. Subscribe today!
Sign upTransform your Salesforce Application into a CPQ solution.
Receive the latest CPQ, Energy and Telecom blogs straight to your inbox. Disrupt competition with Salesforce industries and integrations.
Subscribe to our Blog today!