Posts

Showing posts with the label Postman

Execute Content Hub Script using Postman

Image
Sitecore Content Hub provides a script editor feature to write custom scripts and perform our business logic. Depending on the type of script and use cases, we can trigger the script manually or automatically using triggers. In this blog post, I am explaining how to execute the script manually using Postman. To execute the script from Postman, you need the Script URL and X-Auth-Token. Go to the Content Hub dashboard using the manage icon and click on the Script icon: It will open a Scripts page window, click on add new script icon: In the popup window, provide the Name and Type of the script and click save, I am choosing Action type here: Search your script in the Script window and click on the script name, it will open the script editor to write a script: Click on the Edit icon write the custom script and save the changes button: Click on the Build button, it builds your scripts and lets you know about the build status in the build output whe