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)
...
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:
...
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, ...
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 ...
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 ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
api × 21sitecore-api × 4
sitecore-client × 3
webapi × 3
xm-cloud × 3
sxa × 2
azure × 2
performance × 2
item-web-api × 2
jss × 1
xconnect × 1
sitecore-forms × 1
media-library × 1
presentation × 1
upgrade × 1
mvc × 1
paas × 1
azure-search × 1
links × 1
marketing-automation × 1
scheduled-tasks × 1
layout-service × 1
controller × 1
content-hub × 1
routing × 1