searchList
POST
/{modelName}/searchListQuery the data list based on the specified fields, filters, orders, limitSize, aggFunctions, and subQueries. Default limit to 50.
Request
Support multiple aggregation queries:
- []
- ["SUM", "amount"]
- [["SUM", "amount"], ["COUNT", "id"]]
Effective date, default is Today
.
Fields list to get, empty means all fields of the model.
Support nested filters, such as [a OR b] AND [c OR d OR [e AND f] OR g]
- []
- ["name", "=", "Tom"]
- [["name", "=", "Tom"], ["version", "=", "6"]]
- [["name", "=", "Tom"], "OR", ["code", "=", "A010"], "OR", ["version", "=", "2"]]
- [["name", "=", "Tom"], "OR", ["code", "=", "A010"]], "AND", ["version", "=", "2"]]
Fields to group by, empty means no grouping.
Support multiple order conditions:
- []
- ["name", "ASC"]
- [["name", "ASC"], ["sequence", "DESC"]]
- or string format: "name ASC, sequence DESC"
Page number, start from 1, default 1.
Page size, or limit size for searchList, default 50.
Pivot split field list.
Sub queries for relational fields: {fieldName: SubQuery}
Sub queries for relational fields: {fieldName: SubQuery}
Whether to return the summary result of numeric fields, default no summary.
{
"aggFunctions": [
"SUM",
"amount"
],
"effectiveDate": "2019-08-24",
"fields": [
"id",
"name"
],
"filters": [
"name",
"=",
"PM"
],
"groupBy": [],
"orders": [
"name",
"ASC"
],
"pageNumber": 1,
"pageSize": 50,
"splitBy": [],
"subQueries": {},
"summary": true
}
Request samples
Responses
Status Code
Result Data
Error Message
Common Message