Moving content between Sitecore environments is a common task. Content created in development often needs to be moved to staging and then to production. Depending on the project, this can become a regular part of the development and release process. In traditional Sitecore XP implementations, we often used Package Designer to package content and install it in another environment. But with modern Sitecore SaaS solutions, we need approaches that fit better into automated workflows. In my session at Sitecore User Group France, I discussed how the Content Transfer API and Item Transfer API can be used to move content between Sitecore environments. I also walked through a Postman collection to demonstrate how these APIs work together. Let's look at how the APIs work, how to use them, and what to consider before building an automation solution around them. Why Do We Need Another Way to Move Content? The usual content promotion process looks something like this: Development → ...
Sitecore XP: How to use site specific workflow when global workflow assigned on template standard values?
The Problem We were working with Sitecore XP 10.1 using ASP.NET MVC. Our solution had more than 100 Sitecore sites, and all page items and datasource items used the a Base workflow. The workflow was assigned globally through template standard values. However, some sites needed a simpler workflow with fewer states. We decided to introduce a new workflow called Simple Workflow for these sites. The plan was to create a script that would run against the sites requiring the simpler workflow and update the workflow and state fields of their existing items. This would move the existing content to the new workflow. However, there was another scenario to consider. Since the old workflow was still configured on the standard values of all item templates, any new item created on these sites could inherit the old workflow instead of Simple Workflow To address this, we planned to implement a custom processor that would update the workflow of newly created items to match the workflow used by...