Skip to main content

Salesforce

Salesforce OmniStudio FlexCards: A Beginner’s Guide

Flexcard Featured Image

In the realm of Salesforce, OmniStudio FlexCards stand out as robust components designed to present data from various sources in an aesthetically pleasing and customizable format. These FlexCards enable the consolidation of information into a unified view, enhancing user interaction and comprehension of complex data sets.

What are FlexCards?

FlexCards are pivotal components within OmniStudio’s suite, allowing the creation of dynamic, reusable, and configurable elements that display data from numerous sources. Built using the Lightning Web Components (LWC) framework, FlexCards are versatile tools that can be integrated into OmniScripts, Integration Procedures, and other Salesforce elements, offering a clean and organized presentation of information.

Flexcard Preview

Source: Trailhead Flexcard Preview

Key Features of FlexCards

  1. Data Integration: FlexCards can aggregate data from multiple sources, including Salesforce objects, external APIs, and Apex classes.
  2. Dynamic Views: They offer dynamic and conditional formatting, adjusting the display based on the data context.
  3. Reusability: Once created, FlexCards can be reused across different applications, ensuring consistency and saving development time.
  4. Configurable Layouts: They support various layouts, such as lists, tables, and custom templates.
  5. Interactivity: FlexCards can incorporate interactive elements like buttons, links, and actions, enhancing user engagement.

Building Elements in FlexCard Designer

1. Action

The Action feature allows the creation of various actions, such as initiating an OmniScript, navigating to a webpage, displaying a flyout, or triggering an event. For example, clicking on an action button like “Get 5-day Forecast” can open a modal popup.

Modal Popup

Source: Trailhead

2. Block

Blocks enable the grouping of elements within a collapsible container with properties such as:

  • Collapse by default: Initially hides the block, requiring user interaction to expand.
  • Collapsible: Allows users to expand or collapse the block to reveal or hide content.
  • Conditions: Defines criteria for the block’s visibility.
  • Label: Displays text to help users understand the block’s content.
Flexcard Plans

Source: Trailhead

3. Chart

Displays data in visual chart formats, similar to Salesforce dashboards.

4. Datatable

Presents information in a tabular format retrieved from a data source, such as a 5-day forecast table.

5. Field

Displays data fields retrieved from a data source, essential for showing standard features on a FlexCard.

6. Icon

Shows custom or Salesforce SVG icons that can be associated with specific actions, like a blue icon in a modal popup.

7. FlexCard

Embeds a Child FlexCard within a Parent FlexCard’s state, allowing the child to either have its data source or use the parent’s data source.

8. Image

Incorporates custom images from various sources, including uploads, organizational libraries, or external links, as seen in forecasts.

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: Open the OmniStudio app from the Salesforce App Launcher.
  3. Open FlexCards Designer: Select “FlexCards” from the OmniStudio app and click “New FlexCard.”
  4. Define the Card Properties: Enter necessary details such as name, description, and the object (e.g., Quote, Account).
  5. Add Data Sources: Configure data sources using Data Mapper, integration procedures, or Apex classes.
  6. Design the Layout: Use the FlexCards Designer to arrange data fields and components, applying styles and setting conditional visibility.
  7. Add Actions: Configure actions like buttons or links for user interaction.
  8. Preview and Activate: Preview the FlexCard and activate it for use on record pages, community pages, etc.

Best Practices for FlexCards

  • Keep it Simple: Avoid overcrowding the FlexCard with excessive information; focus on the most relevant data.
  • Use Conditional Views: Utilize conditional formatting to make the FlexCard dynamic and responsive to the data context.
  • Optimize Performance: Ensure data sources are optimized to prevent slow loading times.
  • Test Thoroughly: Test the FlexCard in various scenarios to ensure it behaves as expected and provides a positive user experience.
  • Leverage Reusability: Create reusable templates and components to save development time and ensure consistency across applications.

Conclusion

Salesforce OmniStudio FlexCards provides a flexible and powerful means of displaying data from multiple sources in a cohesive view. By understanding their features, creating and configuring them effectively, and adhering to best practices, you can enhance your Salesforce applications and offer a rich, interactive user experience. Stay tuned for advanced topics on FlexCards in our 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

  4. Unlocking the Power of Salesforce OmniStudio Integration Procedure: An In-Depth Guide

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

Categories
Follow Us