getCSATForQuestion(questionID, filter, onSuccess)

Description

This function will help you to fetch the overall CSAT value of a specific question. You can also filter out the average response value by passing the filter in the function. Note: This function is an async function and doesn't return any value. The value can be fetched through onSuccess function as below
getCSATForQuestion(questionID , filter, function(value) {
//You will get the value here, so write your code here
})


Example:

  • getCSATForQuestion(1234567, {}, function(value) {})
  • getCSATForQuestion(1234567, {segmentCode: [‘S1’, ‘S2’]}, function(value) {})
  • getCSATForQuestion(1234567, {product: [‘p1’, ‘p2’]}, function(value) {})
  • getCSATForQuestion(1234567, {productGroup: [‘pg1’, ‘pg2’]}, function(value) {})
  • getCSATForQuestion(1234567, {isCompleted: ‘true’}, function(value) {})
  • getCSATForQuestion(1234567, {questionID: [1234567, 2345678,3456789,4567890]}, function(value) {})
  • getCSATForQuestion(1234567, {customVariables: [{‘custom1’ :[‘v1’, ‘v2’]}, {‘customMapped40’: [‘v3’, ‘v4’]}]}, function(value) {})
  • getCSATForQuestion(1234567, {dateRange: {start : ‘10/20/2021’, end : ‘04/30/2021’}}, function(value) {})


Refer to Filters for more information