6
votes
How to call api from external component
The call will be authenticated based on the Content Hub cookies you have. So it will use the logged in user to make the call.
You can use jQuery to make the call, the library is already loaded.
$.ajax(...
5
votes
Accepted
How to set a goal in Content hub
There are some reporting events that get initiated automatically in the Content Hub. For example, you will be interested in an asset.download.completed event.
Whenever an asset is downloaded, a log ...
5
votes
Accepted
Migrate sitecore media library to DAM and update the media links in Sitecore
You can export Media files in CSV format and upload them into the Content hub.
Step 1:
Sitecore Media Library Export to CSV:PowerShell extensions script to help export the media library assets file ...
4
votes
Accepted
Can we have Sitecore XP like personalization in Content Hub
The Sitecore Content Hub platform is not a personalization engine. It is aimed at delivery and management of content and digital assets. Moving to Content Hub focuses purely on the content part of ...
4
votes
How to check Sitecore Content Hub Version
With 4.2+ version previous version has now been removed/disabled (Check July 17, 2023 Improvements here), however, the version number is now shown within the user interface of Content Hub.
You need to ...
3
votes
Accepted
How to use the REST API to fetch data from Content Hub using Postman
The API endpoint you are using appears to be correct, but there are a few things that could be causing issues with your authentication request:
When requesting a token from the Content Hub API, you ...
3
votes
Accepted
How to fetch all items from a Content Collection
I have raised a support ticket with Sitecore and the 2nd approach they have suggested, worked for me.
Approach 1:
If you already know the ID of the collection, you can directly use
/api/entities/{id}/...
3
votes
How to check Sitecore Content Hub Version
Kindly refer to the Content Hub Versioning Policy document. As per the document, the releases dates will progressively replace semantic versioning to identify different versions of Content Hub.
Each ...
3
votes
Accepted
Import excel component not visible in Content Hub for creating bulk assets
You can also import Excel files from the Products section as well, following the steps -
Click on Products from Menu
Then click on the + Add button
Click on the Import Excel button
Import your ...
3
votes
Accepted
Content Hub Date Time Field not displaying Time option
Could you please check the below steps might help you?
You go to the page where this component consists of the member.
Then click on the "..." as shown below.
Then click on Edit.
Then go ...
3
votes
Queries on Content Hub Experience Edge API on Delivery Platform
Sitecore monitors this API, its a SaaS product provided by Sitecore as the vendor who is responsible for all monitoring and has an SLA with the customer for up time and scalability. There is no need ...
3
votes
Accepted
Content Hub required field not showing message when placed in different column
For those who are facing the same issue.
I have received a message from Sitecore Support with the statement:
This issue has been officially logged in the Content Hub product's system.
The bug report ...
3
votes
Accepted
Issue with Uploading and Creating Asset Using WebClient SDK After Upgrading Content Hub
This issue is occuring because the version gets appended in the url(?version=2.0), when reading response in the location header through the UploadAsync method. You can change the above code to as ...
3
votes
Fetch list of all the Content entities of a specific content type
You can leverage LINQ query to fetch entities of same type in Content Hub as below.
var query = Query.CreateQuery(entities =>
from e in entities
where e.DefinitionName ==&...
3
votes
Accepted
Fetch list of all the Content entities of a specific content type
To fetch a list of all Content entities of a specific content type, we can use the following methods
Get the List using the parent ID (Content Type ID) of the content entity:
var query = Query....
3
votes
Accepted
Embed iframe tag in Content Hub Rich Text Editor
After investigating more and checking with the Sitecore support team:
Sitecore Team determined that the issue arises because CKEditor, which is the rich text field editor we use, employs content ...
3
votes
Accepted
All fields are not visible on page in Sitecore Content Hub
Please perform the following steps and verify:
In Content Hub, click on the Manage button on the top right corner and choose the Pages option.
In the left panel expand the Content option and click on ...
3
votes
Script on "Create public links for approved assets automatically" documentation page does not compile
The issue is that angle brackets were removed from the script. This has been reported to the Sitecore Docs team. The following script compiles. The only modification is the introduction of the missing ...
2
votes
Why doesn't my restricted Content Hub script have a ChangeTracker?
ChangeTracker is only avaiable on InProcess scripts that are fired on Pre-Commit phase.
2
votes
"Insert from Sitecore DAM" page is empty after installing Sitecore Connect for Sitecore DAM-2.0.0
For Sitecore 10.1 you need to install Sitecore Connect for Content Hub 4.0.0 - Since v3, Connect for DAM and Connect for CMP were merged into a single package.
2
votes
While access preview API for Sitecore Content Hub, getting "HTTP ERROR 401" This page isn’t working error
We need to enable the publishing before using GraphQL endpoints.
Open /admin/settingmanagement
Search for publishingSettings
Enable the publishing
Publish Schema
IDE: https://my.stylelabs.io/api/...
2
votes
Accepted
Watermark Preview won't display
To fix this, I did the following:
Go to Manage/Watermarks
Open Default Watermarks. Remove the Preview rendition from Rendition Links, and save.
Add Preview back to Default watermark and save. The ...
2
votes
Accepted
Error : Relation ‘fieldName’ is self referencing and multiple relation instances match
To solve this we need to pass the second parameter which is RelationRole like below –
IRelation relation = arg.Entity.GetRelation("fieldName", RelationRole.Parent);
This relation role can ...
2
votes
How to call api from external component
After some help from colleagues, I was able to get the way to perform PUT and POST requests without any additional authentication (it shares then current cookies).
There are jQuery extension methods $....
2
votes
Accepted
What Security Policies are necessary to enable the Annotate function?
You need to set the rule for both entity definitions M.Asset and M.File, and then you have to select ReadAnnotations and CreateAnnotations permissions.
Your portal pages rule is fine, but remove the ...
2
votes
How to create a superuser in Content Hub
Try using these steps and connection string values that will help you in setup and configuration.
Create a Sitecore CMP User (Ex: SitecoreCMPUser) in Sitecore Content Hub (Go to Sitecore Content Hub ...
2
votes
How to create a superuser in Content Hub
To create user we followed below steps -
Go to Admin Panel and select Users
Click on Add User button
In the Details tab, provide the Username and Modules
In the User groups section - Click on Add to ...
2
votes
Update Sitecore ImageField with Media Item from Content Hub
Figured out how to solve this myself so I wanted to post this in case anyone else needs help with this. I realized that the FieldItems are just xml so I created a new ImageField and then added the ...
2
votes
Send e-mail notification when an Asset is submitted for approval
I don't think there is an OOTB way to send emails to notify users about approval.
The only way is by creating the script.
The following script goes through the following high-level steps:
Check if a ...
2
votes
Unable to create API Key
If you see the document provided for the Sitecore Content hub, here are the steps to configure your publishing settings given in this reference document.
Configure the publishing settings
The final ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
content-hub × 135content-hub-scripting × 18
taxonomy × 6
dam × 6
cmp × 5
content-management × 4
sitecore-api × 3
azure × 2
security × 2
multilingual × 2
serialization × 2
sitecore-connect × 2
web-client-sdk × 2
sxa × 1
solr × 1
content-search × 1
experience-editor × 1
glass-mapper × 1
identity-server × 1
reporting × 1
search-facet × 1
graphql × 1
role-management × 1
content-delivery × 1
user-profile × 1