@servicenow/sdk - v4.7.0
    Preparing search index...

    Function LookupSelectBoxVariable

    • A CatalogItem variable for a lookup select box field.

      Parameters

      • config: LookupSelectBoxVariableType

        Configuration for the lookup select box variable including:

        • question - Question text displayed to the user
        • When using table lookup:
          • lookupFromTable - Table that is being referenced by this variable
          • lookupValueField - Field to use as the value
          • lookupLabelFields - Fields to display from the reference table
          • lookupPriceField? - Field to use for price
          • lookupRecurringPriceField? - Field to use for recurring price
        • When using choices lookup:
          • lookupSource - Set to 'choices' to use choices lookup
          • choiceTable? - Table containing the choices
          • choiceField? - Field containing the choices
          • choicesDependOn? - Fields that the choices depend on
        • Common options:
          • choiceDirection? - Direction to display choices ('down' or 'across')
          • includeNone? - Whether to include a 'None' option
          • uniqueValuesOnly? - Whether to only show unique values
          • referenceQual? - Filter reference based on a filter condition
          • defaultValue? - Default value for the variable
        • And all other properties from the base Variable type

      Returns LookupSelectBoxVariableType<
          keyof Tables,
          string
          | ExplicitKey<string>
          | Record<keyof Tables>,
      >