Get a List of all Content Entities of the Same Content Type in Sitecore Content Hub
While working on the Content Hub project I received the requirement to get all the Content Entities of a specific Content Type from the Content Hub. For instance, if your Content Hub contains various types of content entities such as a Blog, Article, and News type and there are multiple entities of each content type. Here I am taking an example of retrieving all the Content Entities of the Blog type. To get the list of all the content types, you can use Web Client SDK , there is a method to retrieve the single entity using the Get entities method. Solution: 1. Create a sample console/web application in Visual Studio and add a reference to the Web Client SDK NuGet package (Stylelabs.M.Sdk.WebClient) to your project. 2. Before beginning to write the logic, you should have the Parent ID of the Content Entities that represent the ID of the Content-Type. To find the Content Type ID or Parent ID of a content entity from the Conten...