Who is CodeScience?
● Founding partner of the Salesforce Product
Development Outsourcer (PDO) Program
● We partner with clients to build solutions on
the Salesforce AppExchange
● Named first Master PDO in 2017
● From design to build to implementation, we
support our clients through the full lifecycle
Client success: 300+ Builds
Today’s Presenter
Victor Abraham
Technical Architect
CodeScience
Agenda
● Introduction to Dynamic Interactions
● Benefits
● Demo
● Considerations
● Roadmap
Introduction
Introduction
● Provides a point-and-click way for Lightning components to talk to
each other in a Lightning page
● Allows Lightning components to be loosely coupled at run time
without strong dependencies
● Enables administrators to to build interactive Lightning app pages
Building blocks of Dynamic Interactions
○ Source : Component that triggers the event
○ Targets : Components that are the targets of the interactions
○ Event: Custom event that is triggered from source component
○ Interaction: Activity that transforms source event and assigns
target component attributes
Dynamic Interactions Flow
Source
Component
Dynamic
Interaction
in lightning
pages
Target
Components
Fires custom event with
a payload of relevant
attributes
Event payload attributes
are transformed and
passed as attributes to
target components
Dynamic Interactions Implementation
Account List Component
Route Planner
Benefits
Benefits
● Enables administrators to build highly interactive Lightning pages
● Provides ability to link components at design time in app builder
interface
● Avoids tightly coupling components
● Simpler than alternative ways to get similar result like Lightning
message service, platform events etc.
● Aligned with Salesforce Roadmap. Out of the box components like
listview will soon start firing dynamic interaction events that can
be leveraged to build interactive apps.
Demo
Considerations
Considerations
1. Relatively new feature, roadmap might change
2. Custom components need to include target event configuration to
enable admins to leverage dynamic interactions
3. Try to define dynamic interaction events during planning/
requirement gathering phase
4. Aura components re-render when an interaction targeting them
is triggered
5. After a component’s event metadata is used on a Lightning page
or released as part of a managed package, certain breaking
changes aren’t allowed
Roadmap
Roadmap (Safe harbor)
● Ability to invoke quick actions
● Navigate to a record
● Trigger custom services
● Out of the box support for standard components
● Support for more types of pages like Lightning record page
Mission:
Ensure that no company
navigates Salesforce alone
Thank you!
Questions? Feel free to contact us at info@codescience.com.

Leveraging Dynamic Interactions on Salesforce Lightning Pages

  • 2.
    Who is CodeScience? ●Founding partner of the Salesforce Product Development Outsourcer (PDO) Program ● We partner with clients to build solutions on the Salesforce AppExchange ● Named first Master PDO in 2017 ● From design to build to implementation, we support our clients through the full lifecycle
  • 3.
  • 4.
  • 5.
    Agenda ● Introduction toDynamic Interactions ● Benefits ● Demo ● Considerations ● Roadmap
  • 6.
  • 7.
    Introduction ● Provides apoint-and-click way for Lightning components to talk to each other in a Lightning page ● Allows Lightning components to be loosely coupled at run time without strong dependencies ● Enables administrators to to build interactive Lightning app pages
  • 8.
    Building blocks ofDynamic Interactions ○ Source : Component that triggers the event ○ Targets : Components that are the targets of the interactions ○ Event: Custom event that is triggered from source component ○ Interaction: Activity that transforms source event and assigns target component attributes
  • 9.
    Dynamic Interactions Flow Source Component Dynamic Interaction inlightning pages Target Components Fires custom event with a payload of relevant attributes Event payload attributes are transformed and passed as attributes to target components
  • 10.
    Dynamic Interactions Implementation AccountList Component Route Planner
  • 11.
  • 12.
    Benefits ● Enables administratorsto build highly interactive Lightning pages ● Provides ability to link components at design time in app builder interface ● Avoids tightly coupling components ● Simpler than alternative ways to get similar result like Lightning message service, platform events etc. ● Aligned with Salesforce Roadmap. Out of the box components like listview will soon start firing dynamic interaction events that can be leveraged to build interactive apps.
  • 13.
  • 14.
  • 15.
    Considerations 1. Relatively newfeature, roadmap might change 2. Custom components need to include target event configuration to enable admins to leverage dynamic interactions 3. Try to define dynamic interaction events during planning/ requirement gathering phase 4. Aura components re-render when an interaction targeting them is triggered 5. After a component’s event metadata is used on a Lightning page or released as part of a managed package, certain breaking changes aren’t allowed
  • 16.
  • 17.
    Roadmap (Safe harbor) ●Ability to invoke quick actions ● Navigate to a record ● Trigger custom services ● Out of the box support for standard components ● Support for more types of pages like Lightning record page
  • 18.
    Mission: Ensure that nocompany navigates Salesforce alone
  • 19.
    Thank you! Questions? Feelfree to contact us at info@codescience.com.