Category: XM Cloud

Migrating GraphQL Queries from Sitecore XP to XM Cloud: Key Differences and Best Practices

As Sitecore transitions from the traditional XP platform to the modern XM Cloud architecture, developers will notice significant differences in how GraphQL queries are structured and executed. When migrating component queries from XP to XM Cloud, it’s essential to adjust your approach to ensure compatibility. This is primarily because XM Cloud relies on Sitecore Search-based … Continue reading Migrating GraphQL Queries from Sitecore XP to XM Cloud: Key Differences and Best Practices

Spatial Search with Sitecore Search: Filtering by Location

Using Geographic Filters in Sitecore Search Today, I’ll walk you through how I used Geographic filters in Sitecore Search to query results based on a user’s latitude and longitude. Sitecore Search provides two types of geographic filters: geoDistance geoWithin In my case, I implemented the geoDistance filter. Step 1: Create a GEO Attribute First, create … Continue reading Spatial Search with Sitecore Search: Filtering by Location

Handling Non-Default Device Renderings During Migration to Sitecore XM Cloud From Sitecore XP.

When migrating from Sitecore XP to XM Cloud we encountered some issues - particularly when dealing with device-specific renderings. While Sitecore XP supported multiple devices (Mobile, Desktop, Custom devices, etc.) for rendering different layouts, Sitecore XM Cloud only supports the 'Default' device in GraphQL queries and Layout Service responses. This limitation created a migration challenge: … Continue reading Handling Non-Default Device Renderings During Migration to Sitecore XM Cloud From Sitecore XP.

How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI

As part of our migration from legacy Sitecore 9.1 to Sitecore XM Cloud I needed to access content from legacy Sitecore 9.1 master database, In this post, I’ll walk you through how I attached the database to my local XM Cloud and migrated the content using Sitecore CLI. This blog post is divided into two … Continue reading How to Attach Legacy Sitecore Database to XM Cloud Locally And Migrate Content Using CLI

Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Today, I’d like to share an error I encountered while migrating Sitecore XP 9.1 templates to Sitecore XM Cloud (XMC). After successfully migrating the templates, I attempted to run the Layout Service using GraphQL IDE, but encountered the following error: { "error": "Unexpected token '<', \"<!DOCTYPE \"... is not valid JSON" } At first glance, … Continue reading Debugging GraphQL Errors After Migrating Sitecore Templates from Sitecore 9.1 to XM Cloud

Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver

In this blog post, we will discuss a common issue which we faced in Sitecore XM Cloud where items marked with the "Never publish" setting appear in listings when their parent folder is used as a data source item. We will walk through the steps to create a custom content resolver to address this problem … Continue reading Resolving ‘Never Publish’ Item Visibility Issue in Sitecore XM Cloud with Custom Content Resolver

Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.

We all know that adding new renderings in the Device Editor always places them at the bottom, which could be inconvenient for items with many renderings. In Sitecore XM cloud, I did a POC using XM Cloud Starter Kit code on my local running on docker to enhance the Device Editor by adding two new … Continue reading Sitecore XM Cloud enhance Device Editor and resolve security error invoked via reflection.