Pull incremental data

To pull incremental data the filter should include a reference fields used as a watermark. Subsequent queries then use the watermark value from the previous query as the starting point for retrieving "new" records.

Note: The results can include duplicate records when the watermark field is updated in previously pulled records. The application should deal with duplicate records, and the watermark should be a field that is not likely to change.

Data query

The example uses the e_initialfinishdate field, which indicate when any externally visible field was updated.

Tip: Field e_lastupdated is too volatile to support API incremental pulls. Medallia recommends using e_initialfinishdate as a best practice when pulling incremental feedback data.
query getData($filter: Filter){
  feedback(
    filter: $filter,
  ){
    nodes{ #object with data
        fieldData(fieldId:"e_initialfinishdate"){ values}
    }
  }

Variable

Here the filter is using the value of the e_initialfinishdate field from the last pull request to retrieve only records updated since the previous request.

{
  "filter": { "fieldIds": ["e_initialfinishdate"], "gt": "2018-09-15 15:53:00"}
}