Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

0
votes
0answers
15 views

X-Frame-Options HTTP Header duplicity with Html.AntiForgeryToken() [duplicate]

We are using sitecore 8.2 update 3 version and hosted in azure PASS environment. In our project some of the pages has the Html.AntiForgeryToken(),then there is duplicate X-Frame-Options HTTP Header. ...
0
votes
0answers
15 views

How to assign an SXA Partial design to two different placeholders in a sitecore page? [on hold]

I am new to Sitecore SXA and not at all familiar with Partial and Page design concepts. I just want to know how a partial design (with renderings in placeholder main) can be mapped to a different ...
3
votes
0answers
32 views

Unable to get Dictionary Item value using sitecore Scheduler event

I have created A Sitecore Scheduled Task to send email. I have to read some settings from a Sitecore Dictionary but receiving only key not value. After debugging I have found that Sitecore.Context is ...
0
votes
1answer
35 views

How to integrate an external API with Catalog in Sitecore Commerce 9.0.2

I want to fetch the data from an external API and show it for my Catalog items. The API basically contains the details of my sellable items like product price, name and other details which properties ...
0
votes
0answers
13 views

ERROR Exception receiving ProtocolError calling

This error has been occurring so frequently (Total no. of occurrences 997210) in the CD server (not CM). Has anyone faced similar kind of problem? 4004 2018:08:03 00:00:00 ERROR Exception receiving ...
2
votes
1answer
14 views

Action methods in ServiceApiController is not catching the request

I'm using Sitecore 9 and I have created a ServiceApiController to enhance Sitecore API. I put a simple action method but it doesn't catch any request and I get this exception: Document not found - ...
1
vote
1answer
49 views

How can I add custom catalog attributes in Sitecore Experience commerce 9 and populate it with data from API?

I want to add new attributes for my catalog in Sitecore Experience Commerce 9 update 2 but not sure how to add it using the Sitecore Experience platform. Moreover all the properties data need to be ...
0
votes
0answers
20 views

Sitecore web.config and api error

I am developing a plugin for Sitecore and have experienced a very weird behavior in Sitecore. Part of this plugin, implements web api under Sitecores api: /sitecore/api/ssc. On a client installation,...
0
votes
0answers
27 views

Sitecore 7.2 parsing a droplink field in viewmodel [duplicate]

I am trying to use a droplink in our events section to allow users to select a list of events. I setup the field as a droplink, with the label as the event name, and the event guid as the value. The ...
1
vote
1answer
34 views

Experience Explorer 403 forbidden on sitecore api ajax call

I'm encountering an issue which I can't resolve : using explore mode in the experience editor, I get 403 errors when trying to see any of the data from the current visit (the tabs and accordions are ...
5
votes
1answer
202 views

What is the ShutdownGuard and how should I use it?

I heard someone mention the use of ShutdownGuard for long running precesses. How does one properly make use of this and what are some cautions around its usage?
0
votes
0answers
19 views

Create an item with all its language versions at once using the Restful ItemService API

I'm trying to create an item using the RESTful ItemService API in javascript using this code : var xhr = new XMLHttpRequest(); xhr.open("POST", "http://<your server>/sitecore/api/ssc/item/...
0
votes
0answers
19 views

Convert string to LinkField [duplicate]

I need to convert string (received from SOLR, for example) to LinkField to have an ability to get the URL later. string rawString = "<link linktype=\"external\" url=\"http://some-url/find-and-...
1
vote
0answers
33 views

Can't create contact list

I couldn't create contacts list and getting following exception, HTTP POST URL http://x/sitecore/api/ssc/ListManagement/ContactList Exception Sitecore.XConnect.XdbSearchUnavailableException: The ...
0
votes
0answers
28 views

Best way to incorporate new field into existing class?

This is a noob question, my apologies, but I am a noob. We want to add a dynamic persons list (staff authors) to an existing WeBlog 3.1 component in our Sitecore site, but are running into an error ...
2
votes
0answers
21 views

Encrypt zip file while uploading to media library folder sitecore 8.2

i have followed the sitecore link and create my custom processor for (Sitecore.Pipelines.Upload.Save). i have faced issues while saving all media items. it gives error on file.SaveAs(filename); ...
1
vote
1answer
60 views

Import Media Items in Sitecore Media Library ItemService Restfull API

We are implementing a solution that requires importing media items like images inside Sitecore Media Library. Found it is achievable with Old WebApi, however nothing mentioned equivalent in Sitecore ...
0
votes
1answer
33 views

How to make Sitecore.Context.Item.Fields work in a web control in an external project

I have a Web Forms page and it uses Sitecore.Context.Item.Fields. This works when I publish to the local Sitecore instance. But in my project that is external to the Sitecore instance, Visual Studio ...
0
votes
1answer
55 views

Sitecore 7.2 using droplink

I will start out by saying I am a bit of a noob when it comes to C# and Sitecore, but I am getting better. I am trying to update our code to use a droplink control for an event item (we'll call it ...
0
votes
2answers
81 views

How to filter an Item's children based on its template?

I have a navigation component that should list the current page in a hierarchy of items. I use below line of code to build navigation tree. return item .GetChildren() .Select(i => ...
0
votes
1answer
48 views

Publish items using the JavaScript ItemService API

I'm using the ItemService API in Javascript to login to sitecore and dynamically create items (documentation i'm using) var xhr = new XMLHttpRequest(); xhr.open("POST", "http://<your server>/...
1
vote
1answer
53 views

How to use Authenticated request with the Sitecore RESTful API

As explained in the official Sitecore documentation, I'm using the following block of code to login into the Sitecore. module.exports = function (context, req) { var XMLHttpRequest = require("...
1
vote
1answer
40 views

Sitecore Scheduler job automatically stopped running

I have a sitecore scheduler job running every 60 minutes, It used to be every 10 minutes but after testing I changed it to run every 60 minutes <agent type="XYZ.Scheduler.AdviserSync" method="Run" ...
0
votes
1answer
20 views

Sitecore Publishing Service nuget packages

I am trying to use nuget package to install this dll "Sitecore.Publishing.Service.dll" but it seems that it is not there , any one know what is the nuget package for Sitecore Publishing Service dlls?
1
vote
1answer
58 views

Sitecore Scheduled Tasks and Dependency Injection

I am using sitecore workflow action in order to execute method, but the DI inject services not working, what i have to do to solve this issue ? EX: basiclly i have work flow that will call ...
0
votes
1answer
64 views

Is it possible to display field name in View(cshtml) using glass mapper

I am trying to display field name using Glass Mapper in view rendering in following format: FieldName - FieldValue FieldName - FieldValue Ex: Country - USA City - New York I ...
0
votes
0answers
28 views

Sitecore Item Api Fail Fast

i am wondering why did i could create the same Item repeatedly and remove the same item repeatedly on the same requests. Does Sitecore automatically commits database changes on the end of requests? ...
1
vote
0answers
21 views

Injecting dependencies into custom ServicesApiController without using ServiceLocator

I am injecting a dependency into an custom Api controller I've created that is inheriting from ServicesApiController. I have found that I need to use our service locator class to do this as otherwise ...
0
votes
1answer
298 views

Sitecore WebApi custom route not working controller not found

Controller: public class ExampleController : Controller { private readonly ISitecoreContext _sitecoreContext; public ExampleController () { } [System.Web.Http.HttpGet] ...
1
vote
0answers
46 views

Sitecore MultiLanguage Content changes the URL. Results 404, Not found error

I'm having an issue in my site.I'm using VirtualFolder property to change the site language content. I've a link 'Environment' and my default site language is Chinese. So,the URL looks like www.xyz....
0
votes
1answer
90 views

Advantages of servicesapicontroller over api controller

I've been looking for best way to expose a api that returns data in Sitecore and I found some implementation which use ServicesApiContorller, what are the advantages of using this controller over ...
1
vote
2answers
134 views

loading partial view from jquery

I am trying to swap partial views on my home page layout via jquery. I have 3 tabs which when clicked, would load their respective partial view into a placeholder on the main layout. In my ...
1
vote
1answer
31 views

Updating xDB on async mode on Sitecore 8.2 update 4

We are pushing the customer details into xDB when they login. The problem is we may have times where more than 5k customers could be accessing the site at the same time, So I don't want updating xDB ...
-3
votes
1answer
101 views

Looping through items in bucketed folder [duplicate]

For a project I am working on, I am attempting to figure out how to loop through a bucketed folder programmatically using C#. In viewing the bucketed folder structure, the bucket folder nests the ...
6
votes
1answer
82 views

How to update XDB with customer details in a separate thread

I noticed the call to update the customer details onto xDB is taking considerable amount of time so I would like to do it in a separate thread so that application does not have to wait until the ...
0
votes
1answer
74 views

'Unable to connect to SQL Server database.' - webAPI

using: VS-2017(as admin), sitecore-8.1.2 and SQL - 2012. I created a ASP.Net web application - WebAPI to read content from my local sitecore instance. In the "ValuesController.cs" I am using the ...
1
vote
1answer
145 views

How to track the user behavior and personalization on mobile Apps using Xamarin Sitecore SDK?

I need to provide the personalized content to the mobile apps through SSC/Sitecore mobile SDK and track the user behavior and capture in the xDB. As per my understanding, "Sitecore Mobile SDK ...
0
votes
1answer
42 views

CD site setup for one country / subset of languages

Planning to setup 2 new CD servers which contain only French and English language pages. All other language versions should not exist in new web db. I took the existing web db backup and setup site ...
1
vote
1answer
292 views

Getting a list of items from the ItemService API matching a specific field value

I'm trying to get a list of items from Sitecore that match a custom tag field. This is from an external application so I need to use one of the APIs to do this. I've tried using the Sitecore ...
1
vote
1answer
64 views

Save popup message is frequently shown in Sitecore [closed]

I have added values in few fields across 400+ items in the Sitecore programmatically. After creating all the items in the Sitecore master database, I am getting this message when I click on each one ...
0
votes
1answer
49 views

Finding siblings in buckets

We've a folder item which stores all new artciles. This item is bucketable. But after turning into a bucket, we are not able to find previous and next sibling of an item under bucket. The below code ...
0
votes
0answers
118 views

How to automatically escape item paths for use in Sitecore query

Is there some API utility method which can automatically escape an item path for use in a Sitecore query? I am building a query string in code which uses an item path. If the item path contains a ...
0
votes
0answers
98 views

Accessing Sitecore Analytic Data using Web API in Sitecore 9

I'm new to this concept and I'm looking for a way to get Sitecore Analytic data using Web API. Is there an API already defined in Sitecore which I can access and use on my project? Should I create ...
1
vote
1answer
150 views

How to add item in contact custom facet List type property

I have created a custom facet model with Sitecore 9.0.1 & xConnect. My contact custom facet contains a property of List<string> which I want to populate with different values while contact ...
0
votes
1answer
274 views

Get parent item and it's all child item from solr searchresultItem

I have a requirement that needs to get particular item along with all child item or some of the child item using template id from solr searchresultitem. Can anyone help how to achieve this?
2
votes
3answers
93 views

One CD server site goes down-Notification

Using 3 CD server to host my sitecore site. Using load balancer navigating the traffic on servers. Some time one of the CD server site goes down how we can get notification. Is there any way run some ...
5
votes
1answer
553 views

How to get Descendants of a Sitecore item using Glass mapper?

Is there any direct approach to get descendants(child items and sub child items) of a Sitecore item in Glassmapper model. I know [SitecoreChildren] can be used in GlassMapper model to get Child items....
1
vote
0answers
78 views

Restricting user from forcing manual submit to the Sitecore Url

Looking for the best practices to tackle a user behavior in my Sitecore 7.5 application. Basically there is an action method decorated with the [HttpPost] attribute. This action is invoked through ...
0
votes
3answers
198 views

Getting “Message: Service has been disposed, cannot create object” with Glass.Mapper

I'm using Glass.Mapper v4.5.0.4 and Sitecore 8.2 (rev. 170407). I'm doing an import into Sitecore and am using the SitecoreService.Save(T target) method for creating and saving items. I have the ...
3
votes
1answer
235 views

Getting the page ID when clicking a custom link field in Sitecore

I am creating a new link field in Sitecore following this link: Link for custom link field I have successfully created one called modal link. Specifically I want to get all the modal components that ...