Interactions
Overview
Interactions define the logic and behavior of your Dynamic Components. They determine how the application responds when users engage with the interface—whether clicking a button, selecting a row, or loading a page.
Using the no-code builder, you can define complex behaviors following a simple Event-Driven Pattern:
Trigger (e.g., On Click) → Action (e.g., Navigate) → Result (e.g., Opens Page)
How to Configure Interactions
Select Component: Open your Dynamic Component and click on the specific element (e.g., Button, Data Table) you wish to make interactive.
Access Interactions: Navigate to the Interactions tab in the right-hand Properties Panel.
Choose Trigger: Select the event that starts the sequence (e.g., On Click, On Row Action, On Load).
Add Action: Click Add Action and select the desired interaction type from the library below.
Chain Actions (Optional): You can add multiple actions to a single trigger. They will execute sequentially (e.g., Update Record → Show Toast → Close Modal).

💡 Tip: Chain multiple actions together for one trigger. They execute in order, letting you create sequences like Execute Flow → Show Toast → Navigate.
Interaction Reference
Navigation & Feedback
Guide users to different pages and provide visual feedback on their actions.
Redirects the user to a Record Page, Object Home, External URL, or another App.
Displays a temporary notification banner (Success, Warning, Error, or Info) at the top of the screen.
Interrupts the workflow with a critical message that requires user acknowledgment to proceed.
Requires the user to confirm or cancel an action (ideal for "Delete" or "Submit" scenarios).
Dynamic Components
Open other Dynamic Components within your current page for layered workflows.
Opens another Dynamic Component in a modal overlay. Great for wizards or complex forms.
Opens another Dynamic Component in a sliding side panel.
Flows
Integrate Salesforce Flows to execute business logic and display guided processes.
Runs an Autolaunched Flow in the background to perform calculations or data operations.
Launches a Screen Flow inside a modal window (pop-up) over the current page.
Launches a Screen Flow inside a sliding side panel, keeping the main content visible.
Selected Records Operations
Use these native operations to manage data in bulk directly from the Data Table component without needing to build custom logic.
Automatically removes one or multiple records from Salesforce after a mandatory user confirmation.
Creates exact clones of the selected records in a single backend transaction.
Opens a modal allowing users to select a field and apply a new value to all targeted records.
Records & Data
Manage Salesforce records and export data directly from your components.
Creates a new record in Salesforce using values stored in a record variable.
Commits changes made to a record variable back to Salesforce.
Permanently deletes the record associated with the current record variable.
Refreshes or fetches the latest data for a specific record variable from the database.
(Data Table Header Only) Copies selected rows to the clipboard, formatted for pasting into Excel or email.
Enables direct file downloading from Data Table content.
Variables & AI
Store information and leverage AI capabilities within your components.
Modifies the value of a variable (e.g., Set, Add, Toggle). Used for state management and calculations.
Triggers an AI agent to perform tasks like recommendations, summarization, or automated decision-making.
Other Actions
Additional specialized interactions for specific use cases.
Launches a standard Salesforce Quick Action (e.g., Log a Call, New Task).
Captures the device's current geographic coordinates and updates location-based data fields.
Common Patterns
After updating data: Always add a "Refresh Query" action to show the latest information.
Before deleting: Use "Open Confirm Dialog" to prevent accidental deletions.
Complex workflows: Chain actions like Execute Flow → Assignment → Show Toast → Navigate.
User feedback: Include Show Toast after important actions to confirm success or explain errors.
Troubleshooting
⚠️ My interaction doesn't do anything when I click
Interactions don't work in the Component Builder's preview. You need to test them on an actual page.
Here's how to test your interaction properly:
Save your Dynamic Component in the builder
Go to a Lightning Page where you've added this component (like your Account page or Home page)
Refresh the page to load your latest changes
Try your interaction - click the button, select a row, etc.
If you haven't added your component to a page yet:
Go to Setup → Lightning App Builder
Edit a page (or create a new one)
Drag your Dynamic Component onto the page
Save and activate the page
Now go view that page and test your interaction
Still not working? Press F12 on your keyboard to open the browser console. Look for red error messages - they'll tell you what's going wrong
↕️ My actions happen in the wrong sequence
When you add multiple actions to one interaction, they run top-to-bottom in the list.
To change the order:
Go to the Interactions panel
Find your list of actions
Drag and drop them into the correct order (grab the handle on the left side)
Save your component
If actions still seem out of sync, they might be running too fast. Try adding a small delay between them.
↻ My data shows old information after an action
When you update, create, or delete records, the component doesn't automatically know to refresh what it's displaying.
The fix:
Open your interaction
After your update/create/delete action, click "Add Action"
Choose "Refresh Query"
Select which data table or component needs to refresh
Save
Now your component will reload the data after making changes, so users see the updated information immediately.
→ My navigation button goes to the wrong place
Your Navigate action has settings that tell it where to go. One of these is probably incorrect:
Check these settings:
Page Reference Type: Are you trying to go to a "Record Page" but selected "Object Home"?
Record ID: If going to a specific record, is this the correct record's ID? (It might be pulling from the wrong field)
Object API Name: Did you type "Account" when you meant "Contact"?
How to verify:
Click on the interaction in the Interactions panel
Review each field in the Navigate configuration
Make sure you're using the right variable or field name for Record IDs
Test with a record you know exists
Still having issues? Try navigating to a simple test record first to make sure the Navigate action itself works.
Next Steps
Start with simple interactions like Navigate and Show Toast, then build up to complex sequences as you get comfortable. Each interaction type has detailed documentation with specific examples and configuration options
Last updated
Was this helpful?
