Posts

Showing posts from June, 2024

Common Errors and Limitation in XM Cloud Development

Image
Hello everyone, In this blog, I will try to list down all the posssible error or limitation that is encountered during development in XM Cloud. This blog will be continous blogpost which will be updated over the period of time. This blog will be divided based on two sections. 1. Errors and 2.Limitation Section 1: Errors : Many errors are question asked to Sitecore and they have replied back with answers. 1. Access to fetch at 'https://edge-platform.sitecorecloud.io/v1/forms/data/4b24e4eae68d49cf8eb1692452625d2e-use' from origin '****.vercel.app' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.Understand this error Solution: 1. Added Vercel.json using below code for cors headers": [ { "source": "/(.*)", "headers": [ { "key": "Access-Control-Allow-Origin", "value": ...

PowerShell Script For Creating Roles and Permission Part 1

Hello everyone, As we all know managing user roles and permissions effectively is crucial for maintaining security and ensuring appropriate access within any organization. In this blog post, we'll delve into the user roles and permissions hierarchy at ABC company. We'll explore the different roles, their specific permissions, and how these roles interrelate to form a cohesive and secure system especially when we have multiple website with multisite setup. We will see, how we can implement this using PowerShell. Lets consider, we have a company called ABC which is having corpate website followed by Country level site. The company have below roles. The hierarchy of the Site is ABC(Tenant) --> External(Site Collection) --> IN(Site) ABC Limiter ABC Author ABC External IN Access ABC External IN Content Previewer ABC External IN Content Contributor ABC External IN Content Publisher ABC External IN Content Admin ABC External IN Site Admin Each role...

Migrate Content Between XM Cloud Environment

Image
Hello everyone. In this blog we will discuss how we can migrate content between two different XM Cloud environment. As we all know, how important it is to keep the content sync from production to lower environment. It helps to lower down the risk of error in production as testing can be done more efficiently. In traditional CMS, database restore was one of the most popular way to sync content between environments. But when we are working in XM Cloud, as we all know Its SAAS product, there we don't have control over Databases. So, how we can restore the content on lower environment in such cases? The answer is simple, through package migration. Correct? Nope, package migration is good option when we have very less content and the biggest problem is with media items. Let's see, how Sitecore Serilization helps in this process to resolve our error. We will use Sitecore CLI commands for our rescue. Step 1 : Setting up the Sitecore Serialization. Create a separate folder un...