Is there a way available to get all the collection names under which an entity is being assigned? | Community
Skip to main content
Level 2
August 7, 2015
Solved

Is there a way available to get all the collection names under which an entity is being assigned?

  • August 7, 2015
  • 2 replies
  • 2114 views

Is there a way available to get all the collection names under which an entity is being assigned?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mikecyang

Hi,

To get the list of collections that reference a specified entity, please refer to the following API request (see Producer-Service-Entity section of the swagger documentation):

GET /publication/{publicationID}/{entityType}/{entityName}/{referencingEntityType}

The above request has been added to the DPS2015 Content Producer API examples, you can now use the function getReferencing(). Please see /article/get_referencing_entity.php for the full example.

You can download the latest DPS2015 Content Producer API examples and swagger documentation from here‌, all the resources are in a single zip file.

- Mike

2 replies

Level 2
August 11, 2015

I found that the getContentElements() will return the list of entities within a collection but is there a way to get all the collection names under which an entity is being assigned?

mikecyang
Adobe Employee
mikecyangAdobe EmployeeAccepted solution
Adobe Employee
August 11, 2015

Hi,

To get the list of collections that reference a specified entity, please refer to the following API request (see Producer-Service-Entity section of the swagger documentation):

GET /publication/{publicationID}/{entityType}/{entityName}/{referencingEntityType}

The above request has been added to the DPS2015 Content Producer API examples, you can now use the function getReferencing(). Please see /article/get_referencing_entity.php for the full example.

You can download the latest DPS2015 Content Producer API examples and swagger documentation from here‌, all the resources are in a single zip file.

- Mike