Questions tagged [content-hub-scripting]
Any questions related to content hub scripting in the context of Sitecore can use this tag. This may include User sign-in scripts, User pre-registration scripts, User post-registration scripts, etc
16
questions
5
votes
1
answer
409
views
Calling a script on asset download in Sitecore Content Hub
Does anyone know a way to trigger a script on asset download? Can't find anything in the docs and don't see an obvious trigger condition for that.
3
votes
3
answers
701
views
How to call api from external component
I am developing external component in Sitecore Content Hub 4.X. I want to call REST API as a current logged user.
Custom component expose some options, for example options.api but it is only text...
...
3
votes
2
answers
101
views
Issue with Uploading and Creating Asset Using WebClient SDK After Upgrading Content Hub
We recently upgraded our Content Hub development instance to the latest versionless version. While testing one of the integrations, we encountered an issue that I'd like to explain.
We are attempting ...
1
vote
3
answers
108
views
Fetch list of all the Content entities of a specific content type
I have a requirement to get all the Content entities from the content hub of the same type of content type.
For example, I have a Blog, Article, and Program type of content in the content hub, and ...
1
vote
1
answer
65
views
Embed iframe tag in Content Hub Rich Text Editor
I am trying to embed the iframe tag into the Content Hub Rich Text Editor using internal Integration via script.
The script replaces the placeholder key with an iframe tag in the Rich Text Editor ...
1
vote
2
answers
85
views
Can we tag assets with asset media using the WebClient SDK?
Can we tag assets with asset media using the WebClient SDK? For example, some of our assets are not tagged with any asset media. We're not sure how or why this happened because when an asset is ...
1
vote
0
answers
54
views
How can I send existing CMP content/entities to Sitecore in bulk?
I have the basic Sitecore connect for CMP set up so that when a content item goes into the final workflow state, it is sent to Sitecore. I have also managed to set it up to send over some taxonomy ...
1
vote
1
answer
78
views
Sitecore Content Hub unit test Could not load file or assembly 'Stylelabs.M.Sdk, Version=4.2.4.0'
I tried running the sample test script from the Sitecore Content Hub documentation but it's giving me this error:
Could not load file or assembly 'Stylelabs.M.Sdk, Version=4.2.4.0, Culture=neutral, ...
1
vote
1
answer
425
views
Create renditions through action scripts
I have created some custom renditions for assets in Content Hub,so whenever i upload new asset these renditions will be created automatically, but for existing assets we need to click on refresh ...
0
votes
2
answers
222
views
Why doesn't my restricted Content Hub script have a ChangeTracker?
I have a restricted action script that looks to see if a specific property has changed and stores the new value in the PropertyBag. It's based on this example in the documentation.
using System.Linq;
...
0
votes
1
answer
114
views
Issue in sending emails with Content Hub OOTB Email Template
Anyone tried sending emails using Content Hub OOTB Email Template through action scripts?
It is behaving very strange to me, If I add my personal email in recipient list, it is sending an email to me ...
0
votes
1
answer
96
views
How do I configure a Trigger action on entity duplication
A duplicate operation for entities exists within Content Hub. How can I configure a trigger to fire an action when an entity is duplicated`?
0
votes
1
answer
374
views
Getting values using GetRelation
I'm brand new to Sitecore, just doing acceptance testing. Needing to write a script that takes the value selected for one field (a taxonomy) and then populates two other fields (both taxonomies).
How ...
0
votes
1
answer
273
views
Why doesn't my Content Hub script log DEBUG messages?
I have an Action Script I've created in Content Hub and it has various calls to log messages:
MClient.Logger.Debug("Running script");
MClient.Logger.Info($"Context.ExecutionSource: {...
0
votes
1
answer
108
views
Refresh renditions using Javascript SDK in Content Hub
Is there any way we can refresh renditions using Javascript SDK?
I know we can do this with triggers and action scripts or using Web client SDK but I need to do this with Javascript SDK.
0
votes
1
answer
253
views
Issue while creating a public link of an assest
We are creating a public link of an asset through an action script whenever an asset is modified.
The format of the public link is "Content hub domain/CDN name" + "Rendition name" ...