---
schema_version: "1"
id: b5f59a38c94ab6163b1929f4a6e936df3d8572115c4f31dde38a66b30623388d
title: Pass Data from a Flexcard to an Omniscript By Using a Custom JSON Data Source
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_pass_data_fc_to_os_custom_json.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_pass_data_fc_to_os_custom_json.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5b5badf1ae19bf6e828df0fcf9073c0645146fb63ac4cdd7e0e59269bfcb8d4d
description: To pass data from a Flexcard’s data JSON to an Omniscript, embed the Flexcard as a custom Lightning web component (LWC) inside the Omniscript.
products:
  - Omnistudio
release: "264"
---
# Pass Data from a Flexcard to an Omniscript By Using a Custom JSON Data Source

To pass data from a Flexcard’s data JSON to an Omniscript, embed the Flexcard as a custom Lightning web component (LWC) inside the Omniscript.

1. Create a Flexcard with a custom data source. See [Create a Flexcard](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_flexcard_25432.htm&release=264.0.0&type=5 "Create a Flexcard by specifying a unique name and author. Optionally, save the Flexcard as a child card to embed it in other Flexcards. In the designer for a managed package, you can also configure its data sources and test parameters.").
2. Select Custom as the data source type and add your custom data JSON.
3. Add elements to the Flexcard corresponding to the fields you’ve specified in your JSON.
    
    ![A Flexcard created with custom JSON as the data source. The Flexcard shows fields created in accordance with the parameters in the JSON. The "Field for Binding" field is also shown as done.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/fc_to_os_data.png)
4. In the Setup tab of the Flexcard, select the **Omniscript Support** checkbox.
5. Activate the Flexcard.
6. Create an Omniscript. See [Create an Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_omniscript_8570.htm&release=264.0.0&type=5 "Create an Omniscript to build a form in the Omniscript Designer.").
7. In the first step, add elements corresponding to the fields you’ve specified in the Flexcard.
8. Create a new step and add the Custom LWC input element to it.
9. Configure the custom LWC with these parameters.
    1. Lightning Web Component Name: Choose the Flexcard you created.
        
        ![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
        
        Any validation rules applied to the Flexcard input elements doesn't prevent the Omniscript from proceeding. Set up all input validations within the Omniscript.
    2. In the Custom Lightning Web Component Properties section, click **Add Properties**.
    3. Property Name: parent-data
    4. Property Source: true
    5. Add another property and for Property Name, enter records.
    6. In the corresponding Property Source field, enter the name of the previous step surrounded by the % key. For example, if the previous step is called Step1, enter %Step1%.
        
        ![The Custom Lightning Web Component Properties section in an Omniscript is shown with filled values.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/omnistudio/images/fc_to_os_lwc_properties.png)
10. Preview your Omniscript to check if the Flexcard sends the requisite data to your Omniscript.