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
3 answers
72 views

Is there a rest api to get a list of sitecore forms and export data for given form?

I need to develop a page to show a list of sitecore forms tagged this login user and then allow this user to export data as csv we do not want user to go to forms and export data there so we need a ...
John's user avatar
  • 77
0 votes
0 answers
28 views

How to create accordion in non SXA site?

We would like to create accordion in non SXA website. Also we need to include to all the options which are there in SXA, like creating new accordion element in the experience editor instead of ...
Astle's user avatar
  • 411
0 votes
3 answers
91 views

Which database table contains the Sitecore item path? [closed]

I thought of query the Sitecore master/web database and get the item path information to display it in dashboard instead reading the data from Sitecore content editor. Could I get some thoughts on ...
Astle's user avatar
  • 411
1 vote
1 answer
48 views

How can I return a RichText field via an API and render links correctly?

In my item I have a RichText field that I am returning the value via an api (API controller called from jQuery). In the response, I am able to render the value. But issue is that my RichText field ...
Singh's user avatar
  • 105
1 vote
1 answer
50 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
  • 3,037
0 votes
0 answers
24 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
115 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
53 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
342 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
74 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
298 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
  • 127
0 votes
0 answers
24 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
417 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
75 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
456 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
148 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
72 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
3 votes
2 answers
480 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
73 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
32 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
  • 349
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
375 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
393 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
369 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
  • 343
1 vote
2 answers
312 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
54 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
37 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
471 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
142 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
585 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
574 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
942 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
  • 343
0 votes
0 answers
118 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
541 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
  • 127
1 vote
2 answers
346 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
788 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
  • 343
2 votes
3 answers
4k 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
395 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
684 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
  • 127
1 vote
2 answers
231 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
213 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
819 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
  • 343
2 votes
1 answer
359 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
122 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
132 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
54 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
79 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
211 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
2 3 4 5
8