---
schema_version: "1"
id: 335d2395f60e425506e4a178ffc8923567f6773721756ba9cc3993406807dee4
title: Activate and Publish a Flexcard
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_activateconfigureand_publish_flexcards_24744.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eeb214b5466a49c71a4c4700562a8171250e7b49e98dff86818bab0676838012
description: After you confirm that the Flexcard is ready, activate it. After activation, add the Flexcard to a Lightning page or to a page in an Experience Builder site.
products:
  - Omnistudio
release: "264"
---
# Activate and Publish a Flexcard

After you confirm that the Flexcard is ready, activate it. After activation, add the Flexcard to a Lightning page or to a page in an Experience Builder site.

If you use Omnistudio for Vlocity, or Omnistudio Standard in Summer '22 or earlier, when you activate a Flexcard, Omnistudio generates a custom Lightning web component. Add the generated LWC to a Lightning page or Experience Builder page. See [Activate, Configure, and Publish Flexcards for Omnistudio Vlocity](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&language=en_US).

If you use Omnistudio Standard in Summer '22 or later, add the standard Flexcard component to a Lightning page or Experience Builder page after activation.

You can’t edit or delete an active Flexcard. To make changes, deactivate it first.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_important.png)

Important If a Flexcard embeds an Omniscript and you add the Flexcard to a Lightning Web Runtime (LWR) site in Experience Cloud, include the `lwr` attribute on the `lightning-omnistudio-omniscript` component. Without the attribute, the Flexcard renders in Preview but the embedded Omniscript fails at runtime with the error LWR3008. See [lightning-omnistudio-omniscript](https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/lightning-omnistudio-omniscript.html).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)

Note It is recommended that you use a standard Flexcard component on a Lightning or Experience Cloud page. If you migrate from the Omnistudio managed package runtime to the standard runtime, you can create new versions of existing Flexcards for standard runtime. Then, you can add those Flexcards via the Process Automation section on the Lightning App Builder or Experience Builder page.

To reference your Flexcard on an Experience Cloud site, or on a Lightning page, use the Flexcard wrapper component available from the Salesforce Lightning Component Library. See [Component Library](https://developer.salesforce.com/docs/component-library/bundle/lightning-omnistudio-flexcard) for more information.

If you’re referencing a Flexcard on a Lightning Web Runtime (LWR) Experience Cloud site, you must use a wrapper component that takes in the name of the Flexcard you want to load at runtime, as shown. The `flexcard-name` attribute is mandatory.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_example.png)

Example

```
<namespace-flex-card-standard-runtime-wrapper
    flexcard-name="name"
    record-id="recordId"
    object-api-name="objectApiName"
    records="records"
    exposed-attributes="exposedAttributes">
</namespace-flex-card-standard-runtime-wrapper>
```

- **[Publish a Flexcard](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5)**  
    Define metadata values, such as where your Flexcard is visible, and update the component SVG icon for your Flexcard before publishing your component to a Lightning or Experience page. For example, to view your Flexcard on an Experience site you can enable **Community Page** under **Targets** in **Publish Options**.
- **[Add a Flexcard to a Lightning Page](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5)**  
    Add a Flexcard that you created or an existing Flexcard to Lightning pages and set up how you want it to appear to users.
- **[Add a Flexcard to an Experience Builder Page](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5)**  
    Add a Flexcard that you created or an existing Flexcard to the pages of Experience Builder sites.
- **[Considerations for Using Flexcards on Lightning Web Runtime Sites](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5)**  
    Learn about some considerations for using Flexcards on Lightning Web Runtime (LWR) Experience Cloud sites.

## Publish a Flexcard

Define metadata values, such as where your Flexcard is visible, and update the component SVG icon for your Flexcard before publishing your component to a Lightning or Experience page. For example, to view your Flexcard on an Experience site you can enable **Community Page** under **Targets** in **Publish Options**.

1. From the App Launcher, find and select **Flexcards**.
2. From the list page, select a Flexcard version.
3. If needed, activate the Flexcard.
4. Click ![action menu icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/flexcard_header_menu_icon.png), and then select **Publish Options**.
5. Enter information as needed. Publish the Flexcard to one of these target pages:
    
    1. App Page - Enables the Flexcard to be used on an App page in Lightning App Builder.
    2. Home Page - Enables the Flexcard to be used on a Home page in Lightning App Builder.
    3. Record Page - Enables the Flexcard to be used on a record page in Lightning App Builder.
    4. Community Page - Enables the Flexcard to be used as a drag-and-drop component on a page in Experience Builder.
    5. Community Default - Enables the Flexcard in Experience Builder to expose editable properties when the component is selected.
    
    See [XML Configuration File Elements](https://developer.salesforce.com/docs/platform/lwc/guide/reference-configuration-tags.html).
    
    When you select publishing options for a parent Flexcard, at least one target must be selected. If you uncheck all targets and click Save, Omnistudio automatically enables the App Page, Home Page, and Record Page options as default targets.
6. Save your changes.

## Add a Flexcard to a Lightning Page

Add a Flexcard that you created or an existing Flexcard to Lightning pages and set up how you want it to appear to users.

1. From Setup, in the Quick Find box, enter Lightning App Builder, and then select **Lightning App Builder**.
2. Find the page that you want to add the Flexcard to and then click **Edit**.
3. Drag the Flexcard component from the Standard section of the Components pane onto the canvas.
4. If needed, click **Flexcard Name** and then select a Flexcard.
    
    By default, the builder uses the most recent active Flexcard.
5. To track Flexcard user interactions, select **Enable Omnistudio Analytics**.
6. If needed, configure visibility settings, for example, by using display conditions.
    
    See [Visibility Rules on Lightning Pages](https://help.salesforce.com/s/articleView?id=platform.lightning_page_components_visibility.htm&type=5&language=en_US).
7. Activate your page and configure activation properties.
    
    See [Activate Your Lightning App Page](https://help.salesforce.com/articleView?id=lightning_page_getting_into_salesforce1.htm&amp;type=5&language=en_US).
8. Save your changes.

## Add a Flexcard to an Experience Builder Page

Add a Flexcard that you created or an existing Flexcard to the pages of Experience Builder sites.

You can add a Flexcard to an Aura or Lightning Web Runtime (LWR) Experience Cloud site. To know how to create LWR-compatible Flexcards, see [Activate and Publish a Flexcard](https://help.salesforce.com/s/articleView?id=xcloud.os_activateconfigureand_publish_flexcards_24744.htm&release=264.0.0&type=5 "After you confirm that the Flexcard is ready, activate it. After activation, add the Flexcard to a Lightning page or to a page in an Experience Builder site.").

1. From Setup, in the Quick Find box, enter Digital Experience, and then select All Sites.
2. Find the site that you add the Flexcard to and then click Builder.
3. Click ![Experience Builder icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/experience_builder_lightning_icon.png). If you're using an Aura-based Experience Cloud site, find the Flexcard component under Process Automation and drag it to the canvas. If you're using an LWR site, find the Flexcard component in the Customer Interactions section.
4. From the Flexcard Name picklist, select a Flexcard.
5. If needed, in Exposed Attributes, enter a configurable public property as JSON code.
    
    For example, to show up to five accounts on the Flexcard, if the variable is AccountRecordLimit, enter `{"AccountRecordLimit": 5}`. For multiple properties, separate key and value pairs with a comma, such as `{"AccountRecordLimit": 5, "Greeting": "Hello"}`.
6. If the Flexcard uses the record ID context variable, then to view the related record data, enter a record ID.
    
    For information about exposed attributes and a Flexcard’s context ID, see [Configure Flexcard Settings](https://help.salesforce.com/s/articleView?id=xcloud.os_set_up_a_flexcard_in_the_flexcard_designer_37646.htm&release=264.0.0&type=5 "Specify your Flexcard’s behavior with the setup options. For example, add or update a data source, create an event listener, or add session variables.").
7. If needed, enter the object API name as a parameter in the {!objectApiName} format.
    
    For example, for an Account record page, enter `{!Account}`.
8. To track Flexcard user interactions, select **Enable Omnistudio Analytics**.
9. Preview your Experience Builder site, and make changes as needed.
10. Publish your Experience Builder site.

### Set Up User Access to Experience Builder Pages

Make sure that your users see Flexcards on Experience Builder sites by granting them View All Records access to the Omni UI Cards object. Also, configure the necessary permission sets and groups to control Apex class access.

See [Setup Omnistudio Standard Permission Sets for Experience Site Users](https://help.salesforce.com/s/articleView?id=xcloud.os_setup_omnistudio_standard_permission_sets_for_experience_users_7169.htm&type=5&language=en_US).

## Considerations for Using Flexcards on Lightning Web Runtime Sites

Learn about some considerations for using Flexcards on Lightning Web Runtime (LWR) Experience Cloud sites.

Both existing and newly created Flexcards can be used on LWR sites. Learn about some key considerations before you choose a Flexcard to embed in your LWR sites.

You can use Flexcards through the LWR site builder under the Customer Interactions category. To make sure that your Flexcards display correctly and function well, note these pointers and choose only compliant Flexcards for your LWR sites.

- If you make changes to your Flexcard, whether it is a child or parent Flexcard, make sure that you republish the sites that use it.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)
    
    Note Before republishing your sites via the site builder, consider other elements from other products that you've embedded in your site. Only republish if everything is production-ready.
- To use the Open Omniscript option on an LWR site, make sure that you select the **Load Omniscript from URL** checkbox in the Properties section of the page. This checkbox is added to the Omniscript component and loads the Omniscript present in the URL configured via the Action Type. You must also create an lwcos page for this action to work. For more information, see [Launch an Omniscript from an Omniscript Action on a Flexcard in Experience Cloud](https://help.salesforce.com/s/articleView?id=xcloud.os_launch_an_lwc_omniscript_from_an_omniscript_action_on_a_flexcard_in_a_community_27646.htm&release=264.0.0&type=5 "Omnistudio supports Omniscripts launched from Flexcards in Experience Builder. With the Omniscript for Experience Builder component, you can load a dynamic Omniscript launched from a Flexcard Action element into an Experience Cloud page.").
- The Style tab on LWR sites don't work with Flexcard elements. You can continue to control the style of the Flexcard through the options available within the Flexcard designer, but they aren't compatible with the settings native to the LWR site builder.
- Custom LWCs are supported. However, due to a technical limitation, nested custom LWCs require a workaround to work as expected. Because LWR sites work on cached data, they look for Flexcards and Omniscripts nested within your custom LWCs on the site. If present, they load the appropriate component at build time. To do this, you can pick one of the two methods outlined here.
    - Create a page on your site and add all nested components in your main LWC component to this page. Hide the page so it doesn’t show up for users as a navigation option.
    - On the page that you’re adding your custom LWC, add the dependent Flexcards and Omniscripts. Then, for each component, control the visibility via the Visibility tab. For instance, you can switch the **Show Component on Desktop** toggle on and add a condition that says User ID equals Invalid\_User. Since Invalid\_User is a value that never matches a real user ID, this condition is always false. As a result, the dependent components remain hidden from users but are still available for the LWR site to discover and cache.
- When you open an LWR site from the Digital Experiences page, the site considers you an unauthenticated user and shows only Flexcards that have data available to guest users. To make sure that you see the full data, implement a login page on your site. Then, go to the **Workspaces** link next to the site name. Click **Administration** and find the **Login & Registration** tab in the left navigation pane. Make sure that the Login Page Type dropdown has a value and that the **Allow employees to log in directly to an Experience Cloud site** checkbox is selected.
- ![The Login & Registration page showing the Login Page Setup options](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/login_on_lwr.png)
- Streaming APIs as data sources don’t work on LWR.