Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
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(...
Thomas Caudron's user avatar
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 ...
ckhanna's user avatar
  • 671
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.
josedbaez's user avatar
  • 1,792
2 votes
Accepted

Issue in sending emails with Content Hub OOTB Email Template

I created a sitecore ticket for that and they suggested me to use username instead of email id. The system should then be able to fetch the email from the user's profiles, it worked and it sent email ...
Gautam's user avatar
  • 496
2 votes

Issue with Uploading and Creating Asset Using WebClient SDK After Upgrading Content Hub

I have raised this ticket with Sitecore support, and they acknowledged it as a bug and created a ticket MONE-44641 with high priority. Meanwhile, they suggested a workaround similar to the one ...
Gautam's user avatar
  • 496
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 $....
Ivan Buzyka's user avatar
1 vote

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 ==&...
ckhanna's user avatar
  • 671
1 vote

Can we tag assets with asset media using the WebClient SDK?

We have created a Sitecore ticket for this, and here is the response we received from them: The reason you can't modify the asset media value on an asset is that this relation has 'allow updates' set ...
Gautam's user avatar
  • 496
1 vote

How do I configure a Trigger action on entity duplication

Yes, You can create a trigger which will fire an action whenever a duplicate entity will be created. Lets take an example of an asset, create a new trigger and select objective "entity creation&...
Gautam's user avatar
  • 496
1 vote

Getting values using GetRelation

The answer as simple as it should be: Query the entity by it's Id with your MClient instance. IEntity industryLine = await MClient.Entities.GetAsync(industryID); More information you can find in Web ...
John Grave's user avatar
1 vote

Why doesn't my restricted Content Hub script have a ChangeTracker?

Might be a little late on this one, but can you check your trigger action and ensure it's not running the script in "Post Action".
Alex Lentz's user avatar
1 vote
Accepted

Why doesn't my Content Hub script log DEBUG messages?

You must set the Minimum log level on your script before you save/build/publish it: Warning This setting is reset every time you edit a script, so you will need to change it again every time you want ...
Dan Sinclair's user avatar
  • 5,395

Only top scored, non community-wiki answers of a minimum length are eligible