@servicenow/sdk - v4.13.3
    Preparing search index...
    • Creates a ServiceNow assessment/survey definition (asmt_metric_type) together with its categories (asmt_metric_category) and questions/metrics (asmt_metric) as a single nested entity. The metric_type and category foreign keys are wired automatically from the nesting structure.

      Type Parameters

      Parameters

      Returns AssessmentConfig<T>

      Assessment({
      $id: Now.ID['nps-survey'],
      name: 'Customer NPS',
      table: 'customer_account',
      categories: [
      {
      $id: Now.ID['nps-cat'],
      name: 'Net Promoter Score',
      metrics: [
      {
      $id: Now.ID['nps-q'],
      name: 'How likely are you to recommend us?',
      question: 'How likely are you to recommend us?',
      dataType: 'numericScale',
      scored: false,
      },
      ],
      },
      ],
      })