Add Session Variables to a Flexcard (Managed Package)

For the managed package runtime, set attributes available from a component, or store values from data sources or external systems to access globally on a Flexcard. For example, set an API key or track pagination. Use the merge field {Session.var} to parse the value.

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

This table lists the elements that support Session Variables:

Element

Supported Input Fields

Action (any)

Label

Custom Event Action

Beginning Summer '21: Input Parameter > Value

Field

Label, Placeholder, and Output

Text

Inside the rich text editor

  1. In the Flexcard Designer, click Setup to open the Setup panel.
  2. Click + Add New next to Session Variables.
  3. Enter a Key, such as APIkey.
  4. Enter a Value, such as 123456dk489384A1sdjsk.
    Important
    Important

    You can’t use datasource values as session variables.

  5. Apply the session variable as a merge field to an element field. For example, enter {Session.APIkey} to a REST data source Endpoint URL.