Posts

Showing posts from October, 2025

Managing Guest using Engage REST API in Sitecore CDP – Developer Guide

Image
In real time scenario, when you are working on projects, sometime for testing purpose you might have to perform some actions on the guest profile in Sitecore XM Cloud stored in CDP. In this case, I have found the Engage API becomes very useful to add/update or manage the CDP guest profile using the REST APIs. Example: Suppose you are working on some Decision Model which need to return some offer based on some Guest Extension Properties. But in order to put the values under the extension properties you might have to build a complete form to push the values into CDP. Rather going that path, it would be easier to push the Guest and their properties using Engage API and running the test on Decision Model on the same guest, showing the results and lowering the dependency on other teams. In this blog, I will show how you can setup the APIs quickly using Postman and run the GUEST REST API using it.   Setup API Access Key Token Before we proceed further you need to create a C...

Configuring GraphQL and Running your first query in XM Cloud NextJs App using ContentSDK

Image
While working on real-world Sitecore projects, there are many scenarios where you need to fetch global content values that are reused across the entire site. Although we can retrieve item field values from data source items inside components in Next.js, there are times when we need to fetch content directly from the Sitecore CMS rather than through a component’s data source. One of the most recommended approaches for this requirement is to execute GraphQL queries which use the Sitecore Edge API under the hood and return data in a strongly-typed schema. In this blog, I will explain how to configure and execute GraphQL queries in a Next.js application using the Sitecore Content SDK . About Sitecore ContentSDK Sitecore XM Cloud brings a headless, API-first approach to content delivery. While GraphQL queries can be executed directly through Edge endpoints, Sitecore has introduced the Sitecore Content SDK to make this development experience even easier. The Sitecore Content SDK is a l...