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

    Function CustomVariable

    • A CatalogItem variable for a custom UI component field.

      Parameters

      • config: CustomVariableType

        Configuration for the custom UI component variable including:

        • question - Question text displayed to the user
        • macro - Reference to a sys_ui_macro record
        • summaryMacro - Reference to a sys_ui_macro record
        • widget - Reference to a sp_widget record
        • macroponent - Reference to a sys_ux_macroponent record
        • topicBlock - Reference to a sys_cs_topic record
        • And all other properties from the base Variable type

      Returns CustomVariableType<
          "sys_ui_macro",
          "sys_ui_macro",
          "sp_widget",
          "sys_ux_macroponent",
          "sys_cs_topic",
          | string
          | ExplicitKey<string>
          | Record<"sys_ux_macroponent">
          | Record<"sys_ui_macro">
          | Record<"sp_widget">
          | Record<"sys_cs_topic">,
      >