Skip to main content


FlexCards in Salesforce OmniStudio: A Beginner’s Guide

Flexcard Featured Image

In Salesforce OmniStudio FlexCards are powerful components designed to display data from multiple sources in a visually appealing and customizable manner. They provide a way to consolidate information and present it in a single, unified view, making it easier for users to interact with and understand complex data.

Build industry-specific UI components and applications on the Salesforce platform with OmniStudio FlexCards. Display Salesforce object information along with clickable actions that change according to the context in which they appear and based on the information that they contain.

What are Flexcards?

Flexcards are a key component of OmniStudio’s suite of tools. They allow you to create dynamic, reusable, and configurable components that can display data from various sources. Flexcards are built with the Lightning web components (LWC) framework. Flexcards can be used in OmniScripts, Integration Procedures, and other parts of Salesforce to present information in a clean and organized way.

Flexcard Preview

Flexcard Preview

Key Features of Flexcards

  1. Data Integration: Flexcards can pull data from multiple sources, including Salesforce objects, external APIs, and Apex classes.
  2. Dynamic Views: Flexcards offer dynamic and conditional formatting, allowing the display to change based on the data.
  3. Reusability: Once created, Flexcards can be reused across different applications and use cases, ensuring consistency and reducing development time.
  4. Configurable Layouts: Flexcards support various layout configurations, including lists, tables, and custom templates.
  5. Interactivity: Flexcards can include interactive elements such as buttons, links, and actions, providing a rich user experience.

Build Elements in Flexcard Designer

1. Action

Using the Action feature, you can generate various actions such as initiating an OmniScript, directing to a webpage or application, presenting a flyout, triggering an event, and more. It defines text or a button that performs a specific task upon being clicked. Ex- clicked on action button Get 5-day Forecast, it opens modal popup.

Modal Popup

2. Block

Block allows for the grouping of elements within a collapsible container. It includes the following properties:
 Collapse by default: When selected, the block will be initially hidden and require user interaction to expand.
 Collapsible: This option enables users to expand or collapse the block, revealing or hiding its content.
 Conditions: Define specific criteria that must be met for the block to be visible.
 Label: This is the text displayed for the collapsible block, helping users understand its content.

Flexcard Plans

3. Chart

It exhibits data in the form of a visual chart like salesforce dashboards.

4. Datatable

 Present the information retrieved from a data source in a tabular format on a Flexcard. Ex- 5 day forecast as a table.

5. Field

It presents the data fields retrieved from a data source on a Flexcard. As shown in above image below Standard Features.

6. Icon

It displays a Custom or Salesforce SVG icon that can be associated with a specific action. Ex- Blue icon in the modal popup.

7. Flexcard

Within a Parent Flexcard’s state, you can embed a Child Flexcard. The Child Flexcard can have its own source of data, or it can also use the data source of Parent FlexCard. This is useful when the child requires access to the same data as the parent.

8. Image

It integrates a custom image from various Data Sources, including:

  • Uploading an image
  • Using images from your organization’s library
  • Linking to external image sources

As shown in second image which showing forecast.

Creating a Flexcard

To create a FlexCard, follow these steps:

  1. Sign up for Omnistudio Org: Refer Supercharge customer journeys with Salesforce Omnistudio
  2. Navigate to OmniStudio App: Go to the Salesforce App Launcher and open the OmniStudio app.
  3. Open FlexCards Designer: Select “Flexcards” from the OmniStudio app and click “New FlexCard.”
  4. Define the Card Properties: Provide the necessary details such as name, description, and object (e.g., Quote, Account).
  5. Add Data Sources: Configure the data sources for your Flexcard. This can be done using data adapters, integration procedures, or Apex classes.
  6. Design the Layout: Use the Flexcards Designer to arrange your data fields and components. You can drag and drop elements, define styles, and set conditional visibility.
  7. Add Actions: Configure actions like buttons or links to enable users to interact with the data displayed on the FlexCard.
  8. Preview and Activate: Once you are satisfied with the design, preview the Flexcard to ensure it looks and behaves as expected. Activate the Flexcard to make it available for use in record page, community page, etc.
  9. Publish Options: After activating your Flexcard, which generates a Lightning web component to add to a Lightning or Experience Cloud site page, you can configure publishing options.

Best Practices for FlexCards

  1. Keep it Simple: Avoid overcrowding the Flexcard with too much information. Focus on displaying the most relevant data.
  2. Use Conditional Views: Leverage conditional formatting to make the Flexcard dynamic and responsive to the data context.
  3. Optimize Performance: Ensure that data sources are optimized for performance to avoid slow loading times.
  4. Test Thoroughly: Test the Flexcard in different scenarios to ensure it behaves as expected and provides a good user experience.
  5. Leverage Reusability: Create reusable templates and components to save development time and ensure consistency across your application.


FlexCards in Salesforce OmniStudio provide a flexible and powerful way to display data from multiple sources in a single, unified view. By understanding their key features, learning how to create and configure them, and following best practices, you can leverage Flexcards to enhance your Salesforce applications and provide a rich, interactive user experience. Now that you have a sense of Flexcard basics, let’s check out FlexCard Advanced topics in the next post.

Happy Reading!


Related Posts:

  1. Supercharge customer journeys with Salesforce Omnistudio

  2. Seamless Data Integration with Salesforce OmniStudio DataRaptor

  3. Mastering Salesforce OmniScript: A Comprehensive Guide to Streamlined Workflows

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tushar Khorate, Technical Consultant

Tushar Khorate is a Technical Consultant at Perficient, a results-oriented Salesforce and Vlocity Omnistudio professional with over three years of experience in the Salesforce platform and two years specializing in Vlocity Omnistudio. He has a deep understanding of Salesforce functionalities and has mastered leveraging Vlocity Omnistudio to streamline business processes and craft exceptional customer experiences. 5x Salesforce and 2x Omnistudio certifications further validate his expertise. He has 300+ badges completed on the trailhead and achieved a 3-star Ranger Rank, which showcases his continuous learning. Tushar is passionate about exploring new technologies.

More from this Author

Follow Us