Define a table data source
Use the Table data source to retrieve data from internal ServiceNow tables or from external sources using Workflow Data Fabric.
Before you begin
- At least one context must be defined for each Table type data source with a valid mapping to the source reference table. See Configure the Context Engine Mapper for details.
- Role required: sn_acct_lc.customer_success_application_admin
About this task
- Retrieve data from internal and external tables (See Define a Workflow Data Fabric table data source for details).
- Map Source IDs (for example, User, Asset, Transaction) to business entities such as Sold Products, Capabilities.
- Use conditions such as Start and End dates to analyze trend data.
Procedure
Example
A few examples on how to configure the data source are given below:
- Total number of P1 cases: To calculate the total number of P1 customer cases on a monthly basis, specify the following:
- Source table: customerservice_case
- Conditions:
- Priority: 1
- Created between: Last month and current date
- Group by: sold_product
- Aggregation: Count
- Source reference: Auto-populated to sold_product
- Reassignment count sum: To calculate the sum of reassignment count by Account and Product, select:
- Source table: customerservice_case
- Conditions: Reassignment count is not 0
- Group by: Account, Product
- Aggregation: Sum
- Source value field: Reassignment count
- Source reference: sold_product
- Source reference resolver: Specify the mapping between the Account and Product combination and the Sold Product table in the script as follows:
var account = groupByFieldValueMap[account]var product = groupByFieldValueMap[product]
What to do next
After defining the data source, the next step is to configure the context engine mapper. See Configure the Context Engine Mapper for details.