Loading
Prepare for Email to Become the Default Login ExperienceRead More
Pass Data from an LWC Omniscript to an Embedded Flexcard (Managed Package)

Pass Data from an LWC Omniscript to an Embedded Flexcard (Managed Package)

For the managed package runtime, to populate data fields and perform actions on a Flexcard embedded in an LWC Omniscript, you can pass data from an Omniscript's data JSON to the Flexcard. Embed a Flexcard inside an LWC Omniscript with the Custom Lighting Web Component element.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

There are three ways to pass data from the LWC Omniscript to the embedded Flexcard:

Options

Description

Reference

Pass a set of records

Use the records global context variable to map data from the LWC Omniscript to an emdedded Flexcard.

Pass the recordId

Pass the recordId global context variable from the LWC Omniscript to the Flexcard.

Pass a parent object

Pass a Parent object containing parent attributes to the Flexcard from the LWC Omniscript. The Omniscript is the parent of the embedded Flexcard. The Parent global context variable, such as {Parent.Id}, must be used in the Flexcard where the merge field is supported.

Note
Note

To update the Flexcard whenever the passed-in Omniscript data changes, add a Property Name of listen-os-data-change and a Property Source of true to the Omniscript's Custom LWC element properties for the Flexcard.

 
Loading
Salesforce Help | Article