Example of Retrieving Related Records by Parent Record ID and ID Extension
Consider the following example: retrieving records with relationship by record ID and extensions where record ID is "REC1_1 and extension is "REC1_1 in the repository named "Company".
Example - Request
Endpoint:http://localhost:8080 Resource:/eml/rest/records/Company/REC1_1/relatedrecords/companycustomer
Example - Response
The response returns all the records matching the criteria.
{ "relationshipRecords": [ { "relationshipAttributes": [ { "name": "RCustomerType", "value": "NONIT", "displayName": null, "multivalues": null, "type": 4, "id": 0, "groupName": null, "associationName": null, "auxiliaryContent": null, "multivalue": false }, { "name": "RCompanyType", "value": "IT PVT", "displayName": null, "multivalues": null, "type": 4, "id": 0, "groupName": null, "associationName": null, "auxiliaryContent": null, "multivalue": false } ], "targetRecord": { "productId": "REC2_2", "productIdExt": "REC2_2", "productKeyId": "13404", "version": "1", "state": "CONFIRMED", "key": 13404, "effectiveDate": null, "attributes": [ { "name": "PRODUCTID", "value": "REC2_2", "displayName": "Record ID", "multivalues": null, "type": 4, "id": 0, "groupName": "Unassigned", "associationName": null, "auxiliaryContent": null, "multivalue": false }, { "name": "PRODUCTIDEXT", "value": "REC2_2", "displayName": "Record ID Extension", "multivalues": null, "type": 4, "id": 0, "groupName": "Unassigned", "associationName": null, "auxiliaryContent": null, "multivalue": false }, { "name": "CustName", "value": "John reichard", "displayName": "CustName", "multivalues": null, "type": 4, "id": 0, "groupName": "Unassigned", "associationName": null, "auxiliaryContent": null, "multivalue": false } ], "repositoryName": "CUSTOMER", "classificationSchemeDetails": null, "relationships": { }, "deleted": false } } ], "totalCount": 1 }
Copyright © Cloud Software Group, Inc. All rights reserved.