@servicenow/sdk - v4.9.0
    Preparing search index...
    • Creates a ChoiceSet (sys_choice_set) that adds choices to a table field not owned by the current app.

      By default, generates v3 XML with a <sys_choice_set> wrapper (destructive delete-all-then-insert), which is supported on all platform versions. Set legacyChoices: false in now.config.json to generate v4 XML with a <sys_choice_v2> wrapper (additive merge with removed_choices tracking) on instances that support it (Brazil+, Australia P4+, Zurich P11+); older instances safely skip the record.

      Type Parameters

      • const T extends keyof Tables
      • const F extends string | number | symbol | string & {}

      Parameters

      Returns ChoiceSet<T, F>

      The ChoiceSet configuration

      ChoiceSet({
      table: 'x_snc_scan_result',
      field: 'state',
      choices: {
      pending: { label: 'Pending', sequence: 0 },
      running: { label: 'Running', sequence: 1 },
      },
      })