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

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

CommandHandler to script

In version 3.X it was possible to listen to custom or build in (such as ex. publish.draft) commands by inheriting from CommandHandlerBase<T> : ICommandHandler<T>, ICommandHandler where T ...
3
votes
2answers
176 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... ...
1
vote
0answers
39 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 ...
5
votes
1answer
80 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.
0
votes
2answers
71 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
1answer
70 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: {...