You are here:
Access the ContextId of a Flexcard on an Experience Site (Managed Package)
For the managed package runtime, on an Experience site, to view record data on a Flexcard that uses the {recordId} context variable in an Input Map to pass a
ContextId to an Apex Remote, Omnistudio Data Mapper, or Integration Procedure data source, you must add
and configure a recordId property. Add the recordId property in your Flexcard's configuration
file, then configure the property on the Experience page.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- From an active Flexcard in the Flexcard Designer, click the down arrow next to Activate in the submenu, and click Publish Options.
- Under Targets, select the Community Default checkbox.
- Click the Editor tab.
-
Inside the targetConfig tag, add a property tag with the
name
recordId and the type
String.
<targetConfig targets="lightningCommunity__Default"> <property name="recordId" type="String" ></property> </targetConfig> - Add your Flexcard to your Experience site. See Add a Flexcard to an Experience Page (Managed Package).
-
In the recordId property field, enter
{!recordId}.


