Configuring a REST Data Source Using Named Credentials (Managed Package)

For the managed package runtime, configure a REST data source using Named Credentials to authenticate Apex callouts.

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

A named credential specifies the URL of a callout endpoint and its required authentication parameters in one definition. To create a named credential, see Named Credentials as Callout Endpoints.

To configure a REST data source:

  1. On the Vlocity Cards tab, click New to configure a data source for a new card component, or select an existing component to configure its data source.
  2. In the Cards Designer, in the Layout or Cards pane, from the Data Source picklist, select REST.
    image
  3. From the Subtype picklist, select Named Credential.
  4. In the Path box, enter the REST endpoint URL.
  5. Specify the REST method:
    • GET—Requests data specified by the parameters of the URL.

    • POST—Sends JSON data specified in the Body text area.

      image

    You can use Context Variables to pass inherited values with either method.