Register Dynamic Custom and Pubsub Events (Managed Package)

For the managed package runtime, register events based on dynamic event and channel names. Use a parent attribute, a recordId, or a session variable within the Channel Name and Event Name of a pubsub event, or the Event Name of a custom event.

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

Create the event with a merge field on a Flexcard. For example, channel_{Session.name}, case{recordId}, or evnt_{Parent.status}. Then register the specific event from another component. For example, register channel_acme, case143437h8f9f00, or evnt_New.

Supported Merge Fields

Supported Versions and Properties

Description

{Parent.attr}

Spring '22 for Channel Name and Event Name in both pubsub and custom events.

Register a channel name or event name based on an attributed pass to a child from its parent Flexcard. See Embed Flexcard Inside Another Flexcard (Managed Package).

Example: event_{Parent.closed}.

{Session.var}

Spring '22 for Channel Name and Event Name in both pubsub and custom events.

Register a channel name or an event name based on a stored value defined in Session Variables in the Setup panel. See Add Session Variables to a Flexcard (Managed Package).

Register a channel name or an event name based on a public property defined in Exposed Attributes in the Setup panel. See Create a Public Property for a Flexcard LWC in the Flexcard Designer (Managed Package).

Example: chnnl_{Session.tab}.

{recordId}

Beginning Winter '22 for pubsub Channel Name. Beginning Spring '22 for custom and pubsub Event Name.

Register a channel or event name based on the Id of the record page the Flexcard is on.

Example: accountEvent_{recordId}