Skip to content

Category: LWC

Salesforce Screen Flow – Download records into a CSV file with specified fields using the collection variable

This articles leverages a lightning web component to export the data from Salesforce screen flow. The LWC inputs a collection variable and convert it into a CSV file. Moreover, you also have options to select an sObject and fields to be exported into the CSV file.

Screen Flow – Preview the email body with merge fields populated before sending out

This article shows, how to preview an email in a screen flow with actual merge fields populated before sending it out to a customer, ensuring all details are correct. By using an Apex invocable action that returns email body with all the merge fields populated and in the screen flow show text using display text component and HTML body using an LWC.

Salesforce LWC – Dynamic Social Icons Component for experience cloud using Navigation Menu

This is an enhanced version of Social Icon’s Lightning Web Component, as described in this Salesforce Developer post titled: Advanced Community Navigation Components

The idea is to have a navigation menu having social links with customizable icons that allow for the addition, removal, or updating of social media links and icons without the need to modify the underlying LWC code.

Salesforce LWC to show CMS Content (Collection) as Accordion on public LWR Site using ConnectAPI.ManagedContentDelivery class

An example of LWC to display CMS Content (Collection) as an accordion on a public Lightning Web Runtime (LWR) site, leveraging the ConnectAPI.ManagedContentDelivery class. In this example, I use the getCollectionItemsForChannel method from the ConnectAPI.ManagedContentDelivery class to retrieve CMS Collection items and display them as an accordion.

Salesforce Lightning Web Component (LWC) to export the related list records to CSV without using apex

This article illustrates creating a lightning web component to export opportunities to a CSV file with a simple button click directly from the account detail page. This solution eliminates the need for Apex code, opting instead for the utilization of the getRelatedListRecords wire adapter.