- Data Service OpenAPI
- Entitätseintrag nach ID abrufen
- Entitätsdatensätze abrufen
- Entitätsdatensätze abfragen
- Entitätsdatensatz nach ID löschen
- Entitätsdatensatz nach ID aktualisieren
- Entitätsdatensatz erstellen
- Mehrere Entitätsdatensätze erstellen
- Mehrere Entitätsdatensätze aktualisieren
- Mehrere Entitätsdatensätze löschen
- Datei aus Datensatzfeld herunterladen
- Datei in Datensatzfeld hochladen
- Datei aus Datensatzfeld löschen
Data Service API-Handbuch
Abfragen von Entitätsdatensätzen.
API-Endpunkt

BaseURL/EntityService/<Entity>/query
- Basis-URL:
https://{yourDomain}/{organizationName}/{tenantName}/dataservice_
Anforderungsheader
| Kopfzeile | Wert |
|---|---|
| Autorisierung | Inhaber <access_token> |
| Inhaltstyp | application/json |
Ersetzen Sie alle Werte zwischen den spitzen Klammern <...> durch die entsprechenden Anwendungsfallwerte.
Die <access_token> ist diejenige, die Sie erhalten haben, als Sie die externe Anwendung autorisiert haben. Es ist 1 Stunde lang verfügbar, dann müssen Sie ein neues generieren oder ein Aktualisierungstoken anfordern.
Abfrageparameter
| Abfrageparameter | Datentyp | Beschreibung | Standardwert |
|---|---|---|---|
| ExpansionsLevel (Optional) | int32 | Gibt die Tiefe der abzurufenden Bezugsdatensätze an. Der Wert dieses Parameters kann 1, 2 oder 3 sein. | 2 |
Anforderungstext (erforderlich)
{
"selectedFields": [
"string"
],
"filterGroup": {
"logicalOperator": 0,
"queryFilters": [
{
"fieldName": "string",
"operator": "string",
"value": "string"
}
],
"filterGroups": [
null
]
},
"start": 0,
"limit": 0,
"sortOptions": [
{
"fieldName": "string",
"isDescending": true
}
]
}
{
"selectedFields": [
"string"
],
"filterGroup": {
"logicalOperator": 0,
"queryFilters": [
{
"fieldName": "string",
"operator": "string",
"value": "string"
}
],
"filterGroups": [
null
]
},
"start": 0,
"limit": 0,
"sortOptions": [
{
"fieldName": "string",
"isDescending": true
}
]
}
Anfragetextschemas
Der Text der Endpunktanforderung query enthält die folgenden Komponenten:
selectedFields
Dies ist eine optionale Komponente vom Typ string. Sie gibt die Liste der Felder an, die für jeden Datensatz der Abfrage zurückgegeben werden sollen. Wenn sie leer bleibt oder die Abfrageliste leer ist, werden alle Datensatzfelder zurückgegeben. Der Standardwert ist null.
filterGroup
Dies ist eine erforderliche Komponente, mit der Sie die Filtereigenschaften für die Abfrage festlegen können. Es kombiniert die folgenden Eigenschaften:
-
logicalOperator - This is an optional filterGroup property, of type
int32. It specifies if all the filters and filter groups apply to the query. Use0to apply all the filters and filter groups. Use1to apply any of the filters and filter groups. Default value is0. -
queryFilter - This is a required filterGroup property, that helps you define the filtering expression. It has the following properties:
queryFilter-Eigenschaft Datentyp Beschreibung fieldName stringGibt den Namen des Felds an, das gefiltert werden soll. operator stringSpecifies the filter operator. Supports the following: contains,not contains,startswith,endswith,=,!=,>,<,>=,<=,in,not in. Use the adequate operator for the corresponding field type.Wert stringGibt den Filterwert an. -
filterGroups - This is an optional filterGroup property, in case you need to set another filtering option to the query. It contains all the filterGroup properties listed above.
Starten
This is an optional component, of type int32. Specifies the number of records to skip before retrieving the records from the query. Can be used together with the limit property to implement pagination. The records are ordered ascendingly by their IDs. To modify the sort order, use the sortOptions property. Default value is 0.
limit
This is an optional component, of type int32. It specifies the maximum number of records to be read from the entity. Can be used together with the start property to implement pagination. The default value is 100, and the maximum value is 1000.
sortOptions
Dies ist eine optionale Komponente, mit der Sie die abgefragten Datensätze nach einer Liste von Feldern sortieren können. Wenn leer gelassen, werden die Datensätze aufsteigend nach ihren IDs sortiert. Es kombiniert die folgenden Eigenschaften:
- fieldName - This is a required sortOptions property, of type
string. It specifies the name of the field used to sort the records. The name must correspond to a valid field, and it is case-sensitive. - isDescending - This is an optional sortOptions property, of type
boolean. Set it totrueif you want to sort the records descendingly. The default value isfalse.
Antworten
200 OK
{
"TotalRecordCount": 0,
"Value": [
{
"ClosingDate": "2021-03-04",
"CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"CreateTime": "2021-03-04T10:21:22.771Z",
"Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Logo": {
"Name": "string",
"Path": "string",
"Size": 0,
"Type": "string"
},
"Name": "string",
"Nations": 0,
"OlymipcsVersion": 0,
"OpeningDate": "2021-03-04",
"UpdatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"UpdateTime": "2021-03-04T10:21:22.771Z"
}
]
}
{
"TotalRecordCount": 0,
"Value": [
{
"ClosingDate": "2021-03-04",
"CreatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"CreateTime": "2021-03-04T10:21:22.771Z",
"Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"Logo": {
"Name": "string",
"Path": "string",
"Size": 0,
"Type": "string"
},
"Name": "string",
"Nations": 0,
"OlymipcsVersion": 0,
"OpeningDate": "2021-03-04",
"UpdatedBy": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"UpdateTime": "2021-03-04T10:21:22.771Z"
}
]
}
Antworttextschema
Der Antworttext des Endpunkts query enthält die folgenden Komponenten:
- totalRecordCount - The total number of records matching the specified query filters.
- value - An array of entity records matching the specified query filters, limited by limit property.
401 Nicht autorisiert
Sie sind nicht für den Zugriff auf Data Service authentifiziert. Stellen Sie sicher, dass Ihr Assistent oder Roboter mit einem modernen Ordner in Ihrem Konto verbunden ist.
403 Forbidden
Sie haben keine Berechtigung zum Zugriff auf die Entität, das Feld oder den Datensatz, oder Sie verwenden einen nicht unterstützten Robotertyp. Wenden Sie sich an Ihren Administrator, um die erforderlichen Berechtigungen zu erhalten.