Reloading a Card After Updating an LWC Omniscript (Managed Package)

For the managed package runtime, update information on a card after making a change to an LWC Omniscript by passing an event to the Omniscript in the URL parameter c__vlocEvents of an OS Action.

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

To refresh a card after an LWC Omniscript updates:

  1. Go to the Vlocity Cards tab, and open a card.
  2. From the Actions section of a card state, click Add OS Action and select the Action Options checkbox. To configure your OS Action, see Launching an LWC Omniscript from an OS Action on a Card (Managed Package).
  3. Click Add Parameters:
    • Enter c__vlocEvents in the first input field.

    • Add componentName-reload in the second input field. Replace componentName with the name of the card layout which must be in camelcase. For example, if your card layout name is accounts-campaigns-current, enter AccountsCampaignsCurrent-reload.

  4. The Navigate Action element in your Omniscript must have the checkbox property LWC PubSub Message? enabled to fire the event. For more information on the Navigate Action, see See Navigate Action (Managed Package).
    image