The assessment configuration object
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,
},
],
},
],
})
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. Themetric_typeandcategoryforeign keys are wired automatically from the nesting structure.