Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

digitalr3317510
Level 2
Level 2

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

1 Accepted Solution
mikecyang
Correct answer by
Employee
Employee

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

View solution in original post

2 Replies
digitalr3317510
Level 2
Level 2

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
Correct answer by
Employee
Employee

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

View solution in original post