Retrieve a count of the number of links between an entity and its related entities
get/links/count
For a given entityTypeName and entityId, searches for all related entities and returns a summary of the total number of links found for each related entity type. This method finds all links that are related to an entity and from an entity.
1{2 "links": [],3 "name": "links",4 "count": 2,5 "items": [6 {7 "relationshipId": 101300,8 "relationshipName": "customer_to_order",9 "relationshipLabel": "Customer to Order",10 "relationshipQualifiedName": "customer__customer_to_order",11 "relationshipReverseName": "order_to_customer",12 "relationshipReverseLabel": "Order to Customer",13 "fromEntityTypeName": "customer",14 "fromEntityTypeLabel": "Customer",15 "toEntityTypeName": "order",16 "toEntityTypeLabel": "Order",17 "linkCount": 418 },19 {20 "relationshipId": 104200,21 "relationshipName": "customer_to_address",22 "relationshipLabel": "Customer to Address",23 "relationshipQualifiedName": "customer__customer_to_address",24 "relationshipReverseName": "address_to_customer",25 "relationshipReverseLabel": "Address to Customer",26 "fromEntityTypeName": "customer",27 "fromEntityTypeLabel": "Customer",28 "toEntityTypeName": "address",29 "toEntityTypeLabel": "Address",30 "linkCount": 231 }32 ],33 "version": 234}
Name | Type | Required | Description |
---|---|---|---|
entityId | string | true | Specifies the ID of the entity for which to search. |
entityTypeName | string | true | Specifies the name of the entity type for which to search. |
Status | Meaning | Description | ||
---|---|---|---|---|
200 | OK | The request succeeded. A summary of all related links is returned. | Schema | |
400 | Bad Request | The request was invalid. | Schema |