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.
Data query
The example uses the e_initialfinishdate field, which indicate when any externally visible field was updated.
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"}
}