Get Catalog Variables action

  • Release version: Washingtondc
  • Updated June 13, 2024
  • 2 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Get Catalog Variables action

    The Get Catalog Variables action in ServiceNow allows users to select variables from multiple catalog items and variable sets within the Flow Designer. This functionality is crucial for dynamically retrieving catalog variable values based on user requests.

    Show full answer Show less

    Key Features

    • Role Availability: Accessible to users with the flowdesigner or admin roles, facilitating the addition of actions to a flow and configuration.
    • Inputs:
      • Submitted Request: Requires the requested item record from the Requested Item table.
      • Template Catalog Items and Variable Sets: Specifies the Catalog Item record for populating catalog variables; does not support data pill values.
      • Catalog Variables: A slush bucket for selecting catalog variables from the requested item.
    • Outputs: Outputs appear in the Data panel, providing separate data pills for each selected catalog variable.

    Key Outcomes

    When implemented, the Get Catalog Variables action enables flows to retrieve and utilize catalog variable data dynamically. For instance, when a user requests a standard laptop, the flow can determine the catalog item's category and retrieve relevant variables, allowing for automated processing based on the selected options. This enhances the efficiency and responsiveness of service delivery within the platform.

    Select variables from multiple template catalog items and variable sets using the Get Catalog Variables action.

    Roles and availability

    Available as a Flow Designer ServiceNow core action. Users with the flow_designer or admin role can add an action to a flow and define configuration details.

    Inputs

    Provide a value for each input that your flow needs. To add dynamic values, you can also drag and drop pills from the Data panel or select them from the pill picker.

    Submitted Request
    Data type: Record

    The requested item record from the Requested Item [sc_req_item] table for which you want to get catalog variable values.

    Template Catalog Items and Variable Sets [Catalog Items and Variable Sets]
    Data type: Record

    The Catalog Item [sc_cat_item] record you want to use to populate the catalog variables slush bucket. This input does not support any data pill values.

    Catalog Variables
    Data type: Slush Bucket

    The list of catalog variables whose values you want to get from the requested item record. Each catalog variable that you select is displayed as a data pill in the data pane. You can define flow-specific variables that are displayed in the Available list. To define flow-specific variables, see Create flow Service Catalog variables.

    Outputs

    These outputs appear in the Data panel. You can use them as inputs elsewhere in your flow.

    Catalog Variables
    Data type: Varies by catalog variable type

    The data pane displays a separate data pill for each catalog variable selected from the Catalog Variables input. For a list of supported Service Catalog types, see Supported Service Catalog variable types.

    Get catalog variables for hardware items

    Configuration of Get Catalog Variables action

    In this example, a flow runs when someone requests an item from the Service Catalog. The first flow step looks up the Catalog item record of the requested item. The If flow logic uses the category value (Sys ID) of the catalog item to determine if request is for an item in the Hardware category. The Get Catalog Variables action uses the trigger record as the Submitted Request input. The Template Catalog Items and Variable Sets input uses the variables provided in the Standard Laptop catalog item. All three available catalog variables are selected and displayed as data pills in the data pane.

    Execution details of the Get Catalog Variables action

    The flow execution details show that the Submitted Request links to a request for a standard laptop. Of the three catalog variables, the string variable is empty and the two Boolean variables are false.