Skip to main content
7 votes
Accepted

How to solve JSS application error "Error: Valid value for rootItemId not provided and failed to auto-resolve app root item."

Both the dictionary service and the sitemap service need a root item ID. This root item ID must be configured in two files: <jss-app>\src\lib\dictionary-service-factory.ts <jss-app>\src\...
Serge van den Oever's user avatar
6 votes

XM Cloud content delivery in local machine without any Edge url or config change?

Sitecore Experience Edge is a cloud-based CDN, it's not something you run locally. In basic terms, it is a CDN which is used as a replacement for your CD instances and Web database. You can read more ...
Rob Earlam's user avatar
6 votes

Create custom RESTful API in XM Cloud

You have touched on an important aspect of XM Cloud that separates it from previous versions of Sitecore. XM Cloud is not the place to be serving custom APIs from, and not the place to be doing the ...
Marcel Gruber's user avatar
4 votes
Accepted

How do I use the Sitecore CLI with Sitecore Cloud to serialize content?

Add https://sitecore.myget.org/feed/xmcloud-preview/package/nuget/Sitecore.DevEx.Extensibility.XMCloud reference: dotnet sitecore plugin add -n Sitecore.DevEx.Extensibility.XMCloud Then you should be ...
Alexander's user avatar
  • 1,313
4 votes
Accepted

Sitecore XM Cloud local instance Experience Editor "The operation has timed out"

If you are getting slow performance on your Experience Editor locally, you are probably running out of resources in your docker container. By default, docker gives your container 1gb RAM and shares ...
Richard Seal's user avatar
  • 20.6k
4 votes

Getting the url of the reference fields using Graph QL

To get the URL of selected item in the multilist (reference filed) you can build up a query like below. Here I'm using the default jss site with running a local docker/graphql instance. query ...
Sumit Helaiya's user avatar
4 votes
Accepted

Sitecore XM Cloud local setup error with Node.js

I got help from Sitecore Slack Headless group and as suggested I run npm ci command on the Front-end app root directory. That resolved my initial problem. Initially I did npm install instead of npm ci....
Koushik Mukherjee's user avatar
4 votes
Accepted

Differences between Sitecore XP and Sitecore XM Cloud

Sitecore Forms is not available in XM Cloud yet, but Sitecore are planning to provide a XM Cloud Forms by the end of 2023. Currently you would need to use an 3rd party form provider such a Jotforms or ...
Adam Seabridge's user avatar
4 votes
Accepted

How to get data from an API using XM Cloud

you can start with the Sitecore documentation about XM Cloud development at https://doc.sitecore.com/xmc/en/developers/xm-cloud/index-en.html There is a section for Sitecore ASP.NET Rendering SDK API, ...
Freddy Rueda's user avatar
4 votes

Error when running .net 8 application with XM Cloud in local docker containers (XM Cloud Introduction) - Error NETSDK1045

I first thought this might be related to an old windows version I was running on. So I updated it. But that did not help. So,inspecting the docker image using docker image inspect mcr.microsoft.com/...
Sebastian Winter's user avatar
4 votes
Accepted

XM Cloud with NPM workspaces on local Docker throws "Error: EPERM: operation not permitted, symlink"

Workaround 1 - use Windows Server 2022 for the host machine I managed to eventually find there is an open issue here for this problem. ... the problem exists only when running Windows Server image on ...
Mark Gibbons's user avatar
  • 5,682
4 votes

Source query For General Link Field Type

You can use a query like this to get the children Items of a specific type(You can change the query according to your need). Additionally provide a help text for the Content Authors to use internal ...
Debtanu Biswas's user avatar
4 votes
Accepted

DataSource item's fields object is not coming in the layout service in graphql

Please try and add the below config. This might resolve the issue: <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore....
Debtanu Biswas's user avatar
3 votes

How to obtain GraphQL access token on local XM Cloud

Couple of things here, There are two types of API 1) Preview API - Which what you are referring to which has a URL https://xmcloudcm.localhost/sitecore/api/authoring/graphql/ide for this to work, you ...
Daivagna Nanavati's user avatar
3 votes
Accepted

XM Cloud component with dynamic placeholder

This is a known bug in JSS 21 and has been fixed in JSS 21.0.5. The bug was that all dynamic placeholder keys must be called container-{*} - this was hard coded into the PlaceholderCommon.tsx file in ...
Richard Seal's user avatar
  • 20.6k
3 votes
Accepted

PowerShell Elevate Session State on XM Cloud

As a Solution to be able to run Sitecore PowerShell Script, e.t.c. Is change the elevationAction in the config to Allow or Confirm, then you don't need to enter a password. Set the elevationAction can ...
Jan Bluemink's user avatar
  • 1,205
3 votes
Accepted

NodeJs Container Build in Xmcloud Foundation head

This issue is due to firewall settings and network policy settings on your development machine. Couple of things to try: Ensure that the Use Docker Compose V2 option is not checked and Use the WSL 2 ...
Raman Gupta's user avatar
  • 2,649
3 votes

PowerShell Elevate Session State on XM Cloud

The way to do this for local instances is: Add SITECORE_SPE_ELEVATION: "Allow" to your docker-compose.override.yml file: services: cm: environment: SITECORE_SPE_ELEVATION: &...
Marcel Gruber's user avatar
3 votes
Accepted

Is it possible to give a different hostname than xmcloudcm.localhost to the xmcloud docker container?

The short answer is no. It is not possible to change the default url of xmcloudcm.localhost - this is a restriction as you expected, that the url must be whitelisted for the auth0 redirects. Because ...
Richard Seal's user avatar
  • 20.6k
3 votes

How to get data from an API using XM Cloud

With xmCloud and Experience edge you need to use graphql to retrieve the published results from the Experience Edge. If you have a large inventory, you may want also to consider using Sitecore search. ...
Ghodrat Ashournia's user avatar
3 votes
Accepted

XM Cloud component organization location

The component folder in your Next.js app can be structured as you like. You should create folders in there to logically group your components. For example, you can put the OOTB components into a ...
Richard Seal's user avatar
  • 20.6k
3 votes
Accepted

Sitecore Serilization Roles Doesn't Get Created on XM Cloud Environments

This is because of the default way that XM Cloud deploys the serialization. The SCS files are used to generate an Item as Resources(IAR) file and that is layered into the XM Cloud instance. Roles ...
Richard Seal's user avatar
  • 20.6k
3 votes

Adding New Custom Insert Options

Yes, there is an Integration Point for SPE to add custom scripts to the Insert Options menu. You can read more about it in the official docs here.
Michael West's user avatar
  • 18.5k
3 votes

Delete permission for authors to delete items they have created themselves but no other items

this functionality doesn't exist without code customization in Sitecore XMC or Sitecore normal. You can have such a functionality just if a specific user has rights to create/delete items just under a ...
Vlad Iobagiu's user avatar
  • 18.7k
3 votes

Is there an option to enable custom error details in the Sitecore Experience Editor (XM Cloud)?

To enable custom error details in the Sitecore XM Cloud, you can utilize XDT transformation for the web.config file. In XM Cloud, XDT transforms are supported by specifying the fully qualified paths ...
Raman Gupta's user avatar
  • 2,649
3 votes

Source query For General Link Field Type

You can check the link type by navigating deep in the props and looking for the link field in addition to the link type you will get more details. depending on props and field name your code might ...
Manoj's user avatar
  • 469
3 votes

How to migrate Sitecore forms to XM Cloud?

The short answer is, you can't do this. XM Cloud Forms is a brand new SaaS application that is very different from the MVC Sitecore Forms solution. If it based on Send and you build the forms in the ...
Richard Seal's user avatar
  • 20.6k
3 votes

How to migrate Sitecore forms to XM Cloud?

As Richard Seal said above, the answer is no. Also, when going Composable with Sitecore Saas Products, we need to unlearn a number of things to learn new things. Example, with XM Cloud Forms, we do ...
Varun Shringarpure's user avatar
3 votes
Accepted

Sitecore XMC latest metadata.js script doesn't support monorepo?

I have a support ticket open, but the two changes I needed to make to the OOTB Sitecore app solution were as follows: Looking at the new getMetaData() call, you can locate the file itself here: https:...
Dave Goosem's user avatar
3 votes

How to create a controller rendering in XM cloud

XM Cloud enables headless architecture and provides a front-end application for site delivery. It doesn't include a Content Delivery component, which means you can't create controller renderings in ...
Nidhi Paneri's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible