Define the data source

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 4 Minuten Lesedauer
  • Before calculating the health, product adoption, or product usage score, you must specify the source from which data is to be collected. Data can be collected either through key performance metrics and external sources, or can be calculated.

    To define the data source, follow these steps:
    1. Login as a user with the sn_acct_lc.customer_success_application_admin role.
    2. Navigate to All > Data Context Engine > Data Sources > Create New.
    3. Enter the following details:
      Field Description
      Name Enter a name for the data source.
      Source Select the source from which the data is to be collected from the list.
      • PA indicator: Select this option to use a PA indicator to collect performance analytics data at regular intervals and create records in the Context Engine Data table.
      • External: Specify the external data source from which the data is to be collected. You must define how this data can be retrieved from the external source or use the Table API to save this information in the Context Engine data table.
      • Calculated: Select this option to calculate the metric values dynamically using formulas based on a combination of existing base metrics. For more details, see Define a calculated metric data source.
      • Table: Select this data source type to retrieve and analyze data from internal and external tables. To retrieve data from external sources, you must install the Workflow Data Fabric Hub application and create data fabric tables. For more details, see Define a table data source.
      Hinweis:
      The sequence in which the metrics are calculated is based on the Execution order that defines which metrics are evaluated first. The Execution order is defined as follows:
      • PA Indicator and External: 0 (Metrics from these data sources are calculated first).
      • Calculated metrics: 1 + Max(The child or dependent metrics associated with the parent metric are calculated first followed by the parent metric).
      Frequency Select the frequency at which the data should be collected from the list.
      • Daily
      • Weekly
      • Monthly
      • Quarterly
      Hinweis:
      If you select PA Indicator as your data source, you must select a frequency equal to or greater than the PA Indicator collection frequency. For example, if the PA Indicator is collecting data once a week, you can't select a frequency that is lower than Weekly here.
      PA indicator Select the metric for which the data is being collected.
      Breakdown Select the attribute or category by which the health or risk score is to be grouped. This can be account, product, and so on.
      Breakdown table Select the source table against which the score is calculated.
      Hinweis:
      This field is applicable only if the Source type is Calculated See Define a calculated metric data source for details.
      Target table mapping (Optional) If the Source type is Calculated, you can optionally specify the Target table, Target field, and Target query field. After data collection, the calculated score is written into the matching records where the context aligns with the Target query field. See Define a calculated metric data source for more details.
      Unit of measurement Select the unit of measurement for the PA indicator that can be minutes, hours, days, months, and so on.
      Aggregate Select how the aggregate score should be calculated from the list.The Aggregate score is useful if you select a Frequency that is different from the collection frequency of the PA indicator. For example, suppose the PA indicator collection frequency is set to Daily, and the Frequency is set to Weekly, and you want to calculate the aggregate score for the week. In this case, you can use the average or sum option to calculate the score.
      The following fields are applicable only if you select the Source as Table.
      Source table Select the table from which the source data is to be retrieved. This can be an internal ServiceNow table or an external table.
      Group by fields If you select the Table type data source, you must specify the fields by which the data should be grouped.
      Hinweis:
      You can use up to two fields for grouping.
      Conditions Specify the conditions or filters that will be used while retrieving the data. For example, you can choose to retrieve records for a specified period of time.
      Source value Select the field on which the aggregation is to be performed.
      Source reference

      The source record used to resolve the Group by fields. This field is automatically populated if you selected a single reference type field in the Group by fields option.

      You must update the Source reference resolver script and specify the fields that are to be mapped if the Group by fields contains:
      • Two fields (maximum allowed)
      • A non-reference field.
      • An external field.
    4. Select Submit to create this data source.
    5. Navigate to the Contexts related list and select New.
    6. In the Context page, select the table for which this data source is applicable. This relationship enables the Data Content Engine to collect data from the specified table. Depending on the type of score being calculated, select the table as follows:
      • Health score: Select the Engagement table.
      • Success outcome: Select the Success Outcome table.
      • Product adoption: Select the Sold Products table.
      • Product capability: Select the Product Capability Usage table.
      Hinweis:
      You can define multiple context tables for a single data source.
    7. Enable the Active check box and click Submit to create the data source. You can associate the data source with one or more context tables.
    8. Define color bands as necessary. See the Setup the color banding table for details. The color banding is applied to the health metric data displayed in the Health tab on the Engagement home page.

    After setting up the data source and the context, the next step is to configure the context engine mapper. See the Configure the Context Engine Mapper for details.