# Publishing and embedding Flexcards on pages and sites

*Omnistudio Developer Study Guide · Flexcards · Last updated October 27, 2026 · https://www.certifyforce.com/study-guide/omnistudio-developer/flexcards/publishing-and-embedding-flexcards-on-pages-and-sites*

How to activate and publish a Flexcard, choose Publish Options targets, place the standard Flexcard component in Lightning App Builder and on Aura and LWR Experience Cloud sites, pass record context and exposed attributes, and expose a custom LWC that wraps a Flexcard.

- Certification: Salesforce Omnistudio Developer
- Exam section: Flexcards
- Study guide: https://www.certifyforce.com/study-guide/omnistudio-developer

**Official exam objective:**

> Embed Flexcards across UI components and different channels.

## What the exam expects

- Activate a Flexcard and set Publish Options targets, including what happens when none are selected.
- Add the standard Flexcard component to Lightning App Builder pages and to Aura and LWR Experience Builder pages, with exposed attributes and record context.
- Configure an LWR site so Flexcards render and show real data while you test.
- Display a Flexcard in a custom LWC and expose that component in a builder through its js-meta.xml.

Key terms: **Publish Options** (target pages where the card's component can be used), **exposed attributes** (JSON values for a card's public properties on a builder page), **standard Flexcard component** (the component that loads an active card by name), **lightning-omnistudio-flexcard** (wrapper that renders a Flexcard in a custom LWC), **LWR site** (an Experience Cloud site on Lightning Web Runtime).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Standard placement | Standard Flexcard component (Summer '22 or later); no generated LWC | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| Active cards | Can't be edited or deleted; deactivate first | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| No targets saved | App, Home and Record Page become the defaults | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| Default card version | The most recent active Flexcard | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| Exposed Attributes | One JSON object, pairs separated by commas | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| Site record context | RecordId attribute, lightningCommunity__Default, value {!recordId}; {!recordId} in Record Id | [Settings Examples](https://help.salesforce.com/s/articleView?id=xcloud.os_standard_examples_for_flexcard_settings.htm&language=en_US&type=5) |
| LWR component location | Customer Interactions (Aura: Process Automation) | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| LWR after changes | Republish sites that use the card | [Activate and Publish](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5) |
| Builder visibility | isExposed true plus at least one target | [XML Configuration](https://developer.salesforce.com/docs/platform/lwc/guide/reference-configuration-tags.html) |

## Check yourself

- Why does a Flexcard need a RecordId exposed attribute on an Experience Builder page?
- When must you republish an LWR site that uses Flexcards?
- Where do you find a Flexcard in Experience Builder on an LWR site, and where on an Aura site?
- Which two js-meta.xml settings make a custom LWC appear in Lightning App Builder for record pages?

## Sources

- [Activate and Publish a Flexcard](https://help.salesforce.com/s/articleView?language=en_US&id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&type=5)
- [Examples for Flexcard Settings](https://help.salesforce.com/s/articleView?id=xcloud.os_standard_examples_for_flexcard_settings.htm&language=en_US&type=5)
- [Configure Flexcard Settings](https://help.salesforce.com/s/articleView?id=xcloud.os_set_up_a_flexcard_in_the_flexcard_designer_37646.htm&language=en_US&type=5)
- [Omnistudio Flexcard (Lightning Component Reference)](https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/lightning-omnistudio-flexcard.html)
- [Configure a Component for Lightning App Builder](https://developer.salesforce.com/docs/platform/lwc/guide/use-config-for-app-builder.html)
- [XML Configuration File Elements](https://developer.salesforce.com/docs/platform/lwc/guide/reference-configuration-tags.html)
- [Omnistudio Flexcards](https://help.salesforce.com/s/articleView?id=sf.os_omnistudio_flexcards_24388.htm&language=en_US&type=5)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit, its 5 linked practice questions, and unlimited timed mock exams are included with the Omnistudio Developer pack (USD $19): https://www.certifyforce.com/practice-exams
