Skip to main content

Aura Components

Explore practical guides and implementation patterns for this topic.

Posts

Topic LWC
Lightning Web Components

LWC Dynamic Code: Calling LWC from Aura Component

In Salesforce development, migrating legacy applications from Aura to Lightning Web Components (LWC) often requires interoperability. While LWC offers a lighter, faster architecture, developers frequently need to instantiate an LWC dynamically inside an existing Aura Component container.
Read article
Topic LWC
Lightning Web Components

Connecting LWC and Aura Components Using Aura Events: Complete Integration Guide

In plain words: When upgrading an older Salesforce application, you often need modern Lightning Web Components (LWC) to talk to legacy Aura components . Because they use different architectural frameworks, Salesforce allows LWC to dispatch standard custom events that parent Aura components can listen to, enabling seamless interoperability. As organizations transition their Salesforce user interfaces from legacy Aura components to modern Lightning Web Components (LWC), hybrid applications are common. Ensuring smooth communication between these two architectures is essential. While LWC components cannot directly listen to Aura component events, Aura components can easily wrap and listen to standard DOM events dispatched by LWC child components.
Read article
Topic LWC
Lightning Web Components

How to Navigate from LWC to an Aura Component in Salesforce

In plain words: While Lightning Web Components (LWC) are the future of Salesforce development, you likely still have legacy Aura Components in your org. To make a seamless transition, your new LWCs must be able to route users to those existing Aura pages. By using the standard NavigationMixin service in LWC, you can easily open an Aura Component without writing hacky workarounds. In the past, developers often relied on firing custom events wrapped in Aura containers to navigate between frameworks. However, Salesforce has standardized this process using the lightning/navigation module. In this guide, we will walk through the exact steps to configure an Aura Component to accept incoming traffic, and write the LWC code required to send users there.
Read article
Topic Apex
Apex Development

How to Export Salesforce Data to CSV Using Lightning Aura and Apex

Quick answer: Call an Apex method that reads the records with WITH USER_MODE . In JavaScript, turn the rows into CSV text, and put quotes around any value that contains a comma, a quote or a line break. Add a UTF-8 byte order mark so Excel shows special characters correctly, then download the file with a Blob . You don't need a library or file storage, and the same steps work in Aura. "Can I download this as a spreadsheet?" comes up on almost every custom Salesforce screen. Building the CSV in the browser is fast, needs no file storage, and keeps the work off the server. In this guide you'll build one reusable CSV helper for Lightning Web Components (LWC), a secure Apex query, and an Aura version for older components. You'll also see the mistakes that most often break exports.
Read article