Pull feedback data
Query API is a mechanism for extracting data from Medallia Experience Cloud. Use Query API to make basic queries and extract survey responses.
To pull feedback data, request the feedback
node. The feedback object represents data records where the e_status
value is COMPLETED, which means that surveys are complete and survey-response data is available for extraction.
feedback
operations, when you are filtering by a specific timeperiod, run your query several hours after the period ends to ensure completeness. 10 hours is usually a good delay.For instance, ask the feedback
node to return each record's ID, and the total count of records that matched.
Example: Data query
Send variables in a separate post argument apart from the query definition: The $filter
parameter can be used to limit the search to a subset of records.
Example: Variables
Sample response
The feedback node also returns the pageInfo
needed to make the next query in the pagination. For more details about pagination, see Pagination.
Filtering is composed of an aggregate operation (and, or, not, etc.) with a nesting of other aggregate operations or field-specific operations. For more details about filters, see Filter and sort data. The query below is an example of a more complex query structure to extract survey-response data from specific fields mapped in the variables argument.
Example: Data query
Example: Variables
Q-fields, or Feedback fields, are the building blocks of reports and surveys in that they collect information provided by individuals, including the responses or answers to questions, and responses collected automatically either through observation, scraping, or import.
Ad Hoc survey data
For feedback
and invitations
data, use includeAdHoc:true|false
to include Ad Hoc survey data.
programs
and programRecordSchemas
nodes.Example: do not include Ad Hoc data
Example response