Read all Matching Persons
Retrieves a list of Person objects matching the filter criteria provided
With this method, you send a request to the server to retrieve a subset of all persons, according to the filter criteria provided. This method offers an advanced filter functionality that goes beyond the standard filters used for collective requests of most of the other services available in the SAP IoT platform. Here, you can define a filter criterion that consists of a comma-separated list of individual person IDs. The method then returns a collection of data sets for each Person object specified in the request. This method is especially useful to populate a data table with all the relevant data available for a given selection of persons. For example, you might want to use this method to provide person data for an administrative user interface application.
Request
URI: /Persons
HTTP Method: GET
Permissions:
<bp>.r
<bp>.tenant.r
Query String Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| listFilterID | Yes | string | comma-separated list of IDs referring to the businessPartnerID attribute of a Person |
Request Example
/Persons?listFilterID=adbb2c0fdb0a4b9e99327a52c41fc720,adbb2c0fdb0a4b9e99327a52c41fc721,adbb2c0fdb0a4b9e99327a52c41fc722
Retrieves three Person objects with the specified IDs from the database.
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | List of persons retrieved successfully |
| 400 | Bad request (for example, invalid filter) |
| 403 | Forbidden (user not authorized to access persons) |
Payload
Format: JSON
Only media type JSON is supported. The JSON for this method is an array of multiple occurrences of the following structure (one for each retrieved person):
{"basicData" : {
"businessPartnerID": { "type": "string", "maxLength": 32 },
"tenant" : { "type": "string", "maxLength": 36, "required": true },
"etag" : { "type": "string" }
},
"personName": {
"formOfAddress" : { "type": "string", "maxLength": 10 },
"formOfAddressDescription": { "type": "string", "maxLength": 30, "readOnly" : true },
"familyName" : { "type": "string", "maxLength": 255, "required": true },
"additionalFamilyName": { "type": "string", "maxLength": 255 },
"familyNamePrefix": { "type": "string", "maxLength": 10 },
"middleName": { "type": "string", "maxLength": 255 },
"givenName": { "type": "string", "maxLength": 255, "required": true },
"initials": { "type": "string", "maxLength": 10 },
"academicTitle": { "type": "string", "maxLength": 4 },
"academicTitleDescription": { "type": "string", "maxLength": 60, "readOnly" : true },
"additionalAcademicTitle": { "type": "string", "maxLength": 4 },
"additionalAcademicTitleDescription" : { "type": "string", "maxLength": 60, "readOnly" : true }
},
"communicationData" : {
"emailAddress": { "type": "string", "maxLength": 255, "required": true },
"mobileDestinationLocation": { "type": "string", "maxLength": 2 },
"mobilePhoneNumber": { "type": "string", "maxLength": 127 },
"landlineDestinationLocation": { "type": "string", "maxLength": 2 },
"landlinePhoneNumber": { "type": "string", "maxLength": 127 },
"landlinePhoneNumberExtension": { "type": "string", "maxLength": 127 },
"streetName": { "type": "string", "maxLength": 255 },
"houseNumber": { "type": "string", "maxLength": 10 },
"cityName": { "type": "string", "maxLength": 255 },
"postalCode": { "type": "string", "maxLength": 10 },
"country": { "type": "string", "maxLength": 2 },
"countryDescription": { "type": "string", "maxLength": 60, "readOnly" : true },
"region": { "type": "string", "maxLength": 3 },
"regionDescription": { "type": "string", "maxLength": 60, "readOnly" : true }
},
"objectGroup": { "type": "string", "maxLength": 32, "required": "true" },
"externalIDs": {
value: [{ "type": "string", "maxLength": 60, "required": "false"}]
}
}