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
5 votes
1 answer
383 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.
Vasiliy Fomichev's user avatar
3 votes
3 answers
627 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... ...
user1075940's user avatar
2 votes
2 answers
55 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 ...
Gautam's user avatar
  • 411
1 vote
2 answers
75 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 ...
Gautam's user avatar
  • 411
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 ...
Ben Golden's user avatar
  • 3,313
1 vote
1 answer
378 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 ...
Gautam's user avatar
  • 411
0 votes
2 answers
199 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; ...
Dan Sinclair's user avatar
  • 5,395
0 votes
1 answer
88 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 ...
Gautam's user avatar
  • 411
0 votes
1 answer
65 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`?
Mark Lowe's user avatar
  • 1,046
0 votes
1 answer
294 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 ...
Brettvd's user avatar
0 votes
1 answer
261 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: {...
Dan Sinclair's user avatar
  • 5,395
0 votes
1 answer
64 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, ...
Abby's user avatar
  • 21
0 votes
1 answer
82 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.
Gautam's user avatar
  • 411
0 votes
1 answer
201 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" ...
Gautam's user avatar
  • 411