Questions tagged [sitecore-api]

For questions related to Sitecore's API, covering questions about how to access, create, update or or delete data, as well as questions about how the Sitecore code-base is or can be used for custom or native logic, etc.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

"Unable to reach an external identity provider." Error While Calling API

I have created an API to get Sitecore user details, in a request it needs to pass the user ID and it will return user details which is working fine. I have deployed this API on CM. Also, there are ...
Swati Gupta's user avatar
  • 2,820
0 votes
0 answers
20 views

Install Sitecore from EKS Cluster

I followed this link, to install Sitecore 10.3. But in real time, we need to update the secret in aws secret manager. So, I followed this link, All the pods are working as expected. But When I tried ...
biswajit sahu's user avatar
0 votes
1 answer
67 views

Pass own params in Rest Layout Service using Custom Data Fetcher

I was wondering if there's anyway to override the payload in the Rest Layout Service using my own custom params. I'm upgrading the Frontend JSS, so I need to make sure the there's no other API Changes ...
Bryan Ribo's user avatar
1 vote
1 answer
38 views

how to add Analyzer and Tokenizer in our customfieldtype

I'm trying to implement an analyzer and tokenizer on my created custom field type. Any ideas on how to implement it? example:- I have created one custom field type like wtbngramscase in solr schema ...
Chandan Agrawal's user avatar
1 vote
1 answer
186 views

Sitecore CMS gets slow and unusable when opening up grapgql UI [duplicate]

I have an existing Sitecore 10.3 instance running on my local with SXA. The requirement for me is to use GraphQL to query data from my existing SXA site. In order to do that, I installed a headless ...
Ashan's user avatar
  • 63
0 votes
2 answers
51 views

Sitecore.Mvc.Analytics 10.3 doesn't contain a definition for Sitecore.Mvc.Analytics.Pipelines.Response.CustomizeRendering

using Sitecore.Data.Items; using Sitecore.Mvc.Analytics.Pipelines.Response.CustomizeRendering; using Sitecore.Pipelines; using Sitecore.Pipelines.ResolveRenderingDatasource; public class ...
user3056623's user avatar
1 vote
2 answers
178 views

Get Only one language version per item by using Find-Item

I am using a PowerShell script given below $indexName = "sitecore_web_index" $criteria = @( @{Filter = "Contains"; Field = "industry_sm"; Value = ...
Vinesh's user avatar
  • 85
0 votes
0 answers
22 views

How to get children's of item using odata service in sitecore [duplicate]

I need to get all the children of the below folder structure using the Sitecore OData service. Is there any way to get all the children without the folder structure, meaning all items under "...
Chandan Agrawal's user avatar
1 vote
1 answer
251 views

Sitecore 10.3 error after security bulletin installation- Could not find property 'alwaysExcludeVirtualFolder'

Recently I installed security bulletin https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1002844 for Sitecore 10.3. After that I am getting below error in my docker instance. ...
Sitecoredev's user avatar
0 votes
2 answers
52 views

How to logout specific security domain virtual user from sitecore

I am creating virtual user for site 1 using below code AuthenticationManager.BuildVirtualUser("site1\\"+Email, true); for site 2 using below code AuthenticationManager.BuildVirtualUser(&...
shahul's user avatar
  • 47
0 votes
1 answer
188 views

Invalid graphql endpoint, Verify that 'layoutServiceHost' property in 'scjssconfig.json' file or appropriate environment variable is set

I am a newbie here. I was editing the .env file for adding the graphQLEndpoints. But in between something broke and I got this error. This is the scjssconfig.json file { "sitecore": { ...
hrupapara's user avatar
0 votes
2 answers
44 views

Prolonged Unavailability of myorg: Seeking Alternative Sitecore Repositories [closed]

My team and I are currently engaged with a Sitecore Commerce project, and one of the key repositories we rely upon is https://sitecore.myget.org/F/sc-commerce-packages/api/v3/index.json. Regrettably, ...
Fabio Carvalho's user avatar
0 votes
0 answers
108 views

How to dynamically import a component in sitecore jss inside next js application?

I know the conventional way of dynamically importing a component : const Report = dynamic(() => import('PowerBIComponent'), { ssr: false, }); But since application uses [...path] to catch ...
Nishant's user avatar
1 vote
1 answer
63 views

How can create site specific virtual user for multi site implementation in Sitecore

Currently we are creating virtual user in Sitecore (9.0.2) database once user is authenticated with backend API as shown below Sitecore.Security.Authentication.AuthenticationManager.BuildVirtualUser(&...
shahul's user avatar
  • 47
0 votes
2 answers
53 views

How to sort the renderings by alphabetical order in the "select a Rendering" dialog box which appears on the Experience Editor mode?

How can we change the order(to Alphabetical order) of Renderings in the "Select a Rendering" dialog box? We have tried extending the SelectRenderingForm class which returns no renderings in ...
Jero's user avatar
  • 1
3 votes
2 answers
285 views

The remote server returned an error: (403) Forbidden. Sitecore web api item access in console application [duplicate]

I am trying to access Sitecore items using Webapi in console application its throwing an error - The remote server returned an error: (403) Forbidden. code:- var url = "https://sc103sc.dev.local/...
Kuldeep Tewatia's user avatar
2 votes
1 answer
57 views

Error Cannot create tracker

We are getting the below error after we upgraded from Sitecore 9.1 to sc 10.1.2 on our preprod and prod environment. We have also migrated our contacts from xdb 9.1 to 10.1.2. Below is the error ...
Arjun Arora's user avatar
1 vote
1 answer
31 views

Issue with Sitecore Content Multi Lingual Tagging: "Could not perform tagging, Providers list is empty" message and warning

I have successfully configured content tagging in Sitecore for the "English" language content. However, I am facing an issue where it is not working for "Japanese" language content....
Suresh R's user avatar
  • 325
0 votes
0 answers
15 views

Not able to create manifest file .PFA in sitecore jss with next.js [duplicate]

I am trying to integrate sitecore-jss with next.js, when I am trying to run the below command 'jss deploy app --accept certificate 426a2098ef89941dec9f277a4bc1ef677f555a4a -c -d' getting not able to ...
Reshma Holennavar's user avatar
1 vote
2 answers
267 views

Not able to login into sitecore with invoke-restmethod

I need to fetch the data of item with API - https://doc.sitecore.com/xp/en/developers/90/sitecore-experience-manager/the-restful-api-for-the-itemservice.html I am trying this with PowerShell and tried ...
Jagmeet Kaur's user avatar
2 votes
2 answers
219 views

Powershell - Remove recycle bin items older than 1 year

Running version Sitecore 9.3 - and the latest version of the Powershell package The Powershell documentation has an example of deleting an individual item. $database = Get-Database -Name "master&...
eKoz's user avatar
  • 45
1 vote
2 answers
269 views

Sitecore JSS update content item

I have created a hello world JSS application with Angular + Rest application. I have deployed the application to my local sitecore 10.3. Later, i have created a new component and i am able to add the ...
Jey's user avatar
  • 323
1 vote
2 answers
266 views

Redirect old subsite url to new subsite url using URL redirect generic IIS Rewrite Rule

in existing production we have URL structure as follows https://mainsite.com/subsite Now the sub site URL structure changed as follows https://mainsite.com/newsubsite/subsite2 We want to redirect old ...
shahul's user avatar
  • 47
1 vote
1 answer
47 views

REST client API, item creation using branch template [duplicate]

it's the same issue mentioned in: Create Item using REST API and Branch as template. Wanted to know if any solution was found for the issue mentioned in the above post. I am using version Sitecore 10....
Akshay D's user avatar
0 votes
1 answer
34 views

{virtualFolder} in route config is not taking full path defined on the site defnition file

My current Sitecore(9.0.2) project have multisite implementation with URL structure as follows Url: www.MainSite.com virtual folder:/ Url: www.MainSite.com/SubSite virtual folder:/SubSite Url: www....
shahul's user avatar
  • 47
1 vote
1 answer
309 views

media item creation using Sitecore service API (HTTP POST method)- Error : Resource was not found

Post updated on 05/03 for more information: Developing a content migration tool using C# console app, using HTTP CRUD operations to access/add/update Sitecore items . To create Media items used HTTP ...
Akshay D's user avatar
1 vote
1 answer
107 views

SwitchOnRebuildSolrSearchIndex is providing wrong results for SOLR master-slave setup

Our custom indexes have primary (search_index) and Secondary (search_index_rebuild) cores which are pointing differently in master and slave servers as we are using SwitchOnRebuildSolrSearchIndex. Due ...
Ruchi Gupta's user avatar
1 vote
2 answers
474 views

Sitecore api- create item with multilist and Media item

I am using sitecore rest api, I am able to create item, also populate Content item values (for Field type Single-line) with PoSt method. Content field values are being in passed in body of rest client ...
Akshay D's user avatar
2 votes
3 answers
367 views

How to call controller from Sitecore MVC application?

I just installed Sitecore and created a MVC web application and published the solution to Sitecore installed directory. Created a simple Page controller and action in MVC, created a Template, Page in ...
K.G's user avatar
  • 21
1 vote
2 answers
698 views

Solr auto suggest from multiple fields

I am trying to Solr auto suggest query from multiple fields (say for example, name_t, description_t) in a single request handler or same suggest.dictionary. I have the configs as below, when I have ...
Jey's user avatar
  • 323
0 votes
0 answers
79 views

Unable to add a new component through the experience editor mode in sitecore 10.2 for QA and Dev environments but works fine in the localhost

There is an issue we have been facing from a long time. When I try to add a new component through the experience editor in localhost it works fine but if I try the same in QA or dev environment it ...
charan kumar's user avatar
2 votes
3 answers
389 views

How to check if a Sitecore item is linked to another item

Is there a way to check if an item is linked to other items using C#? Also, how to remove these links? Somehow item.Versions.RemoveAll(false) is not working if the item is linked to other items.
Vinesh's user avatar
  • 85
1 vote
2 answers
211 views

Things I should keep in mind before performing any bulk update in Sitecore items programmatically to avoid any SQL deadlock

I am using Sitecore 9.1 and I need to know what things I should keep in mind before performing bulk operation programmatically on Sitecore Items for multiple languages in parallel to avoid the SQL ...
Ruchi Gupta's user avatar
0 votes
0 answers
14 views

Get Url with section value in HttpRequestProcessor [duplicate]

I am building redirect module where i need to get the request url from browser with section value. Example : https://www.site1.com/news#category1. I am not able to get #category1 in code using args....
Prateek's user avatar
1 vote
3 answers
535 views

Sitecore GraphQL or condition

I am trying to get all the items in the certain folder based on 2 templates (Article, News) with the following GraphQL query. However i am facing to add the second template with "or" ...
Jey's user avatar
  • 323
2 votes
3 answers
3k views

The request queue limit of the session is exceeded

In my project media library has more than 200 child item in single folder. I'm trying to upload the image but facing the issue "The request queue limit of the session is exceeded". Below ...
Rameshkumar's user avatar
0 votes
3 answers
246 views

I have an API Controller which returns JsonResult. And I have created a Controller Rendering in Sitecore, how can I pass datasource ID dynamically?

This is my API Controller: [HttpGet] public JsonResult FeaturedCategories() { Database WebDB = Sitecore.Configuration.Factory.GetDatabase("web"); var dataSourceId ...
hrupapara's user avatar
1 vote
1 answer
578 views

Delete all numbered version of a specific language version using c#

I have to delete the language version of a Sitecore item. For Ex. if it has 5 numbered versions in the English language so I have to delete all 5 at once. I have tried by item.Versions.RemoveVersion();...
Vinesh's user avatar
  • 85
1 vote
2 answers
169 views

Sitecore Package creation Install Ver in code c#

I have written code that creates packages in Sitecore ver 8 and uploads and publishes in sitecore 9. The code is done in C# create package and installing package and publishing the package. Creating a ...
Mr Sumo's user avatar
  • 113
1 vote
1 answer
153 views

Sitecore Unit Testing Trouble w/ NSubstitute and Nunit

I am newer to Sitecore and extremely new to its unit testing. been following examples online that mimic exactly what I am trying to accomplish but I seem to be getting an object reference(you will see ...
pet3r15's user avatar
  • 13
4 votes
1 answer
675 views

How do you authenticate the GraphQL endpoint in Postman?

I am getting 403 "Authentication required." when i hit the GraphQL query in Postman. I am able to execute the same query in Sitecore GraphQL Playground. In postman, i am passing the URL as ...
Jey's user avatar
  • 323
2 votes
1 answer
246 views

Get Sitecore Items based on the dates by using graphql

I have a requirement to fetch the news items in between the fromDate and toDate. fromDate and toDate need to pass as a parameter so i am unable to forming the query. for your reference please find the ...
Saiprasad's user avatar
2 votes
1 answer
96 views

Create item with branch as template using ItemService API

Good afternoon, I'm trying to create Item using REST API and branch ID as the Template ID the service returns a 400 "Template is invalid" error. Does anyone know if there is a way to create ...
Luiz's user avatar
  • 21
1 vote
2 answers
109 views

How to remove Server HTTP Header from Sitecore GraphQL API response?

The Sitecore GraphQL API endpoint is returning Server HTTP Header in its response which has information on the hosting web server (IIS). This is a security issue as it gives the attacker information ...
rvsure's user avatar
  • 119
1 vote
0 answers
41 views

Session from GetPageItemProcessor is null in Service layer

I am having a PageUnavailableProcessor, which extends GetPageItemProcessor. This Processor helps in redirecting to a user-defined Page for all 403 errors (we are tagging the pages by language and ...
Yeshwanth's user avatar
0 votes
0 answers
61 views

Fatal Error Required Validator DateTime Field not working

I created a new required Field Validator for a DateTime field. Image Attached. I added the Fatal Error message so the user cannot save. I added the validation Rule to the template field. Images ...
Mr Sumo's user avatar
  • 113
0 votes
1 answer
164 views

How to return IHttpActionResult while using SitecoreController

I'm not getting proper response as per below return value. Currently i'm getting response as namespace of Project as : Feature.SitecoreAPi.Platform.Controller.TestAPIController+HttpActionResult. ...
Ranjeet's user avatar
1 vote
2 answers
558 views

IServicesConfigurator not found

My Sitecore web application is a .Net Framework 4.8 Web application. I am trying to integrate Sitecore DI container. I have added Nuget packages for Microsoft.Extensions.DependencyInjection, Microsoft....
Parry Brookes's user avatar
1 vote
0 answers
51 views

Sitecore DropTree field render in JSS layout service API

I am using DropTree field and I selected the listing page Item. so now I want to see the selected item full path in the layout service API. Actually Layout Data "componentName": "...
Saiprasad's user avatar
0 votes
1 answer
178 views

How to replace image in sitecore media library programmatically [duplicate]

Database master = Sitecore.Configuration.Factory.GetDatabase("master"); var item = master.GetItem(new ID("{493E6479-D647-4120-A543-B20924F24978}")); item.Editing.BeginEdit(); //I ...
Ranjeet's user avatar

1
2 3 4 5
8