Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Access the ContextId of a Flexcard on an Experience Site (Managed Package)

          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.

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

          1. From an active Flexcard in the Flexcard Designer, click the down arrow next to Activate in the submenu, and click Publish Options.
          2. Under Targets, select the Community Default checkbox.
          3. Click the Editor tab.
          4. 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>
          5. Add your Flexcard to your Experience site. See Add a Flexcard to an Experience Page (Managed Package).
          6. In the recordId property field, enter {!recordId}.
            LWC community page record Id
           
          Loading
          Salesforce Help | Article