Retrieves the object's (Data Feed, Data Source, Datamart) row level data. A filter can be applied.
If you want to achieve better performance when fetching large data sets and if you do not need the total number of items in the table – use the /datamart.fetchnocount/{typedId} endpoint instead.
You can choose fields to be returned in the response by employing the resultFields
or valueFields
filter:
resultFields: returns key-value pairs as objects. This is the more friendly response compared to valueFields but the server fetches all fields from the database in the backend which might result in a slower performance. See the List Product's listProductsResponseExample_resultFields response example.
valueFields: returns just an array of values. Use this option if a better performance is required. See the List Product's listProductsResponseExample_valueFields response example.
When
distinctResults
is set to true, it applies only to the first column specified in thevalueFields
array. For example, if"valueFields": ["ConditionType", "TableNumber"]
is used, only distinct values forConditionType
are returned.
Please note: When paging is applied, use a deterministic sort (for example,
"sortBy":["InvoiceLineID"]
). If no sorting is defined when paging, you may get duplicates in the response.
{- "endRow": 300,
- "oldValues": null,
- "operationType": "fetch",
- "startRow": 0,
- "textMatchStyle": "exact",
- "data": {
- "_constructor": "AdvancedCriteria",
- "operator": "and",
- "criteria": [
- {
- "fieldName": "currency",
- "operator": "iEquals",
- "value": "EUR"
}
]
}, - "sortBy": [
- "InvoiceLineID"
], - "resultFields": [
- "ProductID",
- "label",
- "unitOfMeasure",
- "currency",
- "formulaName",
- "lastUpdateDate"
]
}
{- "response": {
- "node": "string",
- "startRow": 0,
- "data": [
- { }
], - "endRow": 0,
- "totalRows": 0,
- "status": 0
}
}