Posts

Showing posts from May, 2024

Get a List of all Content Entities of the Same Content Type in Sitecore Content Hub

Image
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...

Sitecore 10.4 Installation Authenticode Issuer

Image
While installing Sitecore 10.4, I encountered an error about the Authenticode issuer and SitecoreInstallFramework version. The error message is about Sitecore Install Framework conflicts. To investigate more about it and to check the version I executed the following command in PowerShell and I have SIF version 2.3: Get-Module SitecoreInstallFramework –ListAvailable As stated in this error Sitecore 10.4 version requires SIF version 2.4 and to install it Sitecore suggested in error that use the -SkipPublisherCheck parameter, so to install this, execute the following command: Install-Module SitecoreInstallFramework -SkipPublisherCheck -Force After execution if you get the following error: Then Execute the following command to register repositories and register as trusted. Register-PSRepository -Name SitecoreGallery -SourceLocation https://nuget.sitecore.com/resources/v2 Set-PSRepository -Name SitecoreGallery -InstallationPolicy Trusted ...