Skip to main content
10 votes
Accepted

Is there any known performance difference between Item.Axes.GetDescendants() and recursive Item.GetChildren()?

I did some benchmarks using those two possibilities. Scenario Fetch 2040 items organized in the following way: Root Item - Bulk Items 1 - Bulk Items 1.1 (100 items) ...
Hugo Santos's user avatar
  • 2,311
5 votes

Is there any known performance difference between Item.Axes.GetDescendants() and recursive Item.GetChildren()?

Much faster way is to get descendants from index. Query would be get all items that Path starts (contains) the same as current item + ID of item is different to current one. Something like this: ...
Peter Procházka'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
3 votes
Accepted

Sitecore OData MaxDepth $expand

MaxDepth == 2 is a default value of OData validator. You can override default values by registering your custom validator settings. 1) Add reference to Microsoft.AspNet.OData (check corresponding ...
x3mxray's user avatar
  • 3,180
3 votes
Accepted

How to use the REST API to fetch data from Content Hub using Postman

The API endpoint you are using appears to be correct, but there are a few things that could be causing issues with your authentication request: When requesting a token from the Content Hub API, you ...
Vadim Birkos's user avatar
3 votes

How to get data from an API using XM Cloud

With Sitecore XM Cloud 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 also want to consider using ...
Ghodrat Ashournia's user avatar
2 votes

REST client API, item creation using branch template

That's not possible with Restful Api for ItemService. The only method that allows create items there is Create Item (read https://doc.sitecore.com/xp/en/developers/103/sitecore-experience-manager/the-...
Marek Musielak's user avatar
  • 24.2k
2 votes

Sitecore custom api routing is not working

It needs to create custom routing for calling a controller action method for multisite. Steps are as below: Step 1) Add App_start folder in the Foundation Layer Project. Add a class file in this ...
Ratnesh Pandey's user avatar
1 vote

ServiceAPIController No HTTP resource was found that matches the request URI

You need to register your route first like below: public class RegisterHttpRoutes { public void Process(PipelineArgs args) { GlobalConfiguration.Configure(Configure); } protected void ...
Swati Gupta's user avatar
  • 3,442
1 vote

How to customize Sitecore's Layout service api url?

Maybe this blogpost can help? https://gary.wenneker.org/sitecore-jss-using-a-custom-layout-service-configuration/ This is the markdown version of that blog: Sitecore JSS: Using a custom Layout Service ...
Jeroen Breuer's user avatar
1 vote

Sitecore api- create item with multilist and Media item

I am not sure what error you are getting on the selected value side of the box. But if you see the raw value (valued stored in the database) of the Multilist field, you will find a list of Sitecore ...
Sumit Bhatia's user avatar
  • 5,919
1 vote
Accepted

Sitecore api- create item with multilist and Media item

To set the multiple selected value for multilist field you need to pass GUIDs separated by a |. For example Service is multilist field here and selected values are guid of items. { "ItemName&...
Sumit Helaiya's user avatar
1 vote

Create item with branch as template using ItemService API

For curiosity I had tried this on 10.0.1 instance and can confirm this does not work. While looking at source code responsible for creating Items through REST API/Item Service it seems to specifically ...
Kamil C's user avatar
  • 531
1 vote
Accepted

Stored Sitecore search using API returns 400 error

I have tried running this query via Postman and the syntax seems fine to me. Just follow the below steps to make this work. First of all, You will need to use this method to authenticate users. It ...
Raman Gupta's user avatar
  • 2,669
1 vote

Change sort order with Sitecore Restful API

Instead of using the string approach written in the sitecore documentation https://doc.sitecore.com/developers/93/sitecore-experience-manager/en/the-restful-api-for-the-itemservice.html when sending ...
Cristi Vulturar's user avatar
1 vote

Get Experience Forms Performance statistics using API

The performance data is retrieve using the action GetFormStatistics from Sitecore.ExperienceForms.Client.Controllers.ReportsController class. I added below the action GetFormStatistics: namespace ...
Vlad Iobagiu's user avatar
  • 18.8k
1 vote
Accepted

Contacts not enrolling in Automation Plan in XP Scaled topology

This sounds like the Marketing Automation Engine webjob is not running properly. This is an executable that, in Azure Paas, runs as a webjob in the MAops app service (for XP Scaled topologies) and ...
George Tucker's user avatar

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