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
2
votes
0answers
29 views

Is it possible to access “/sitecore/api/ssc/auth/login” API from Content Delivery?

We want to have token based authentication for the API set up in Sitecore Content Delivery (CD). Can we access /sitecore/api/ssc/auth/login API from Content Delivery?
0
votes
1answer
28 views

Logging API Response from Entity Services

I've read through the developer's guide to Sitecore.Services.Client and I've successfully implemented a solution using REST against the Sitecore Entity Service. All of it works as expected. We're now ...
0
votes
1answer
24 views

Json Reference field in Json Variant return Error when the Reference Field Is empty

I am using SXA Json Content to create API. In the JSON Variant, I used Reference Field to display Drop Link Field in the data. But when the DropLink field is empty, the API returns error. So I need to ...
2
votes
0answers
8 views

Any Performance bottlenecks in Sitecore (9.x) Security Feature in CD [closed]

We are working on oauth login with external IDP and we will create the virtual users after validation (Sitecore 9.3). Based on the claims, we will set certain (extranet) roles and custom profile ...
0
votes
1answer
26 views

Sitecore Item URL with Custom Domain in Azure PaaS

I have Sitecore 8.2 update 5 site deployed in Azure PaaS as an App Service. I have created a custom domain (e.g. abc.com) in the App Service. This custom domain is kept behind F5 firewall. I am facing ...
0
votes
0answers
64 views

Getting exception for Sitecore custom API calls

I'm working on an SXA Project with to different code base one with SXA Commerce and other with SXA without commerce integration. The commerce site is gone to production before 4 months and we started ...
0
votes
0answers
30 views

In MediaManager, how to get image's full url with specifed site's domain included?

The reason why I want to change the domain of an image url is because I'm providing an API to a third party. And the regulation is all media url and internal link url, needs to replace the default ...
1
vote
1answer
28 views

OData Item service Support in Sitecore 8.2

For one of our new application[non-sitecore] we need some data from Sitecore Instance which is on version 8.2. We are looking for the available API options, Is OData Item Service is supportable with ...
1
vote
1answer
50 views

How do I resolve 404 error returned by request.GetResponse() when trying to create a media library item via Sitecore Web API?

I am trying to create items in my Sitecore Media libary via Sitecore Web API. Our version of Sitecore is 8.2. My main concern is if I am formulating the request properly and if there is a place like ...
0
votes
0answers
37 views

Is there a way to load multiple renderings in homepage/dashboard parallel in Sitecore 9.1?

Home page has about 15 renderings with each controller rendering calling different API for analytical data (external systems for graph,charts ,summarized data) hosted on Sitecore 9.1 Average max time ...
0
votes
0answers
17 views

Field of “CustomType” Not working properly in Experience Editor

I have a date field which is of "CustomType". It has a validation in the 'Validation' field with this Regex ^(?!\s*$).+ I need to edit this field in Item through Experience Editor. I have created a ...
0
votes
1answer
23 views

Edit DropList Field value through Code

I have a droplist field in Item. Its source is of a folder where 2 items present named Yes and No. When the droplist field is clicked 2 options comes up. I want to edit the field through Code i am ...
1
vote
1answer
48 views

Read Sitecore Item ID on user control on html tag

I created an Accordion component in Sitecore(web-forms) and it's working fine. But if I add multiple accordions on the same page it's opening up the first accordion even though if I click on the ...
0
votes
1answer
52 views

How to reset the session at 3AM daily , sitecore has different configs?

Is there an option in sitecore where we can specific the time when all session/logged in user should expire ? Thank you
0
votes
0answers
38 views

How can I solve Server Error in '/' Application Index has not been initialized? [duplicate]

If I access my home page, show error like this : Server Error in '/' Application. Index has not been initialized. Description: An unhandled exception occurred. Exception Details: System....
1
vote
1answer
53 views

How to identify new entries in core databases

we have got an existing sitecore 8.1 instance complete database. Now we need to identify what are the entries available in the database. in master db we have identified easily by looking into all the ...
1
vote
1answer
37 views

.Net SDK Wrapper for Sitecore SSC REST API Item Service

As we know, Sitecore provides the ItemService [link] for developers to have a REST API interface for interacting with Sitecore items. What I am trying to achieve is to consume this REST Api from the ...
0
votes
1answer
118 views

Index has not been initialized on content management server

We are getting an issue "index has not been initialized" if clicks any of the Sitecore content tree items in the content editor, Does anyone know how to solve this. Thanks, Suresh
0
votes
1answer
41 views

SXA retrieve SiteInfo for another site (not the context site)

In order to render alternate URL metadata, I need to get a SiteInfo object (Sitecore.Web.SiteInfo) for other sites apart from the context site. I have tried to use var otherSiteInfo = ...
0
votes
0answers
77 views

Retrieving Sitecore attachments/files via API

I’m a newbie to Sitecore. My client is using Sitecore as a document storage tool to store files in form of pdf, word, etc. The requirement is to fetch the files through Sitecore’s API from an external ...
0
votes
1answer
58 views

How can i get children Item from Item using Sitecore ItemService?

How can I get Children item using the Item service API? I retrieved parent item and fields using Item service API I got the result like below Json { "ItemID": "25a40733-babf-4f16-a025-...
0
votes
1answer
35 views

Are there any JSS deploy events to which I can tap my custom code?

Just looking if there are any events that are triggered while doing jss deploy?Similar to the other events item:copied packageinstall:ended ...etc
1
vote
1answer
32 views

Use Sitecore service Client Get Item or Item Id based on the Search term using fields

Is there any way to get Item or Item id using Sitecore Service client based on the fields in the master database. Search term: http://{host}/sitecore/api/ssc/item/search?term=12345&...
0
votes
1answer
44 views

The selected link Target value is not displayed after customising the Hyperlink Manager

Following on from a previous question on how to make customisations of the RTE upgrade safe, we have: 1) Customised the LinkManager.ascx to add a new property for the 'rel' attribute on the link. ...
2
votes
1answer
147 views

Setting up a basic contact form with Sitecore JSS (not using Sitecore Forms)

I'm building a JSS App and need to set up a basic contact form (sends an email). Since I'm using Sitecore 9.1, Sitecore Forms is unavailable in JSS. How do I set up an endpoint in Sitecore to send ...
0
votes
0answers
174 views

Basic Authentication in Sitecore and IIS

I want to give basic IIS authentication to a website build in Sitecore. I tried with the given code, however, it is creating the number of spaces in the return URL and not rendering the authentication ...
0
votes
0answers
39 views

How do we get Sellable or varient images through commerce api?

I have added the images in sitecore sellable item but in not getting the Images Detail in Sellable Api. {{ServiceHost}}/{{ShopsApi}}/SellableItems('NYRR Catalog,20001,20003')?$expand=Components($...
0
votes
0answers
32 views

Adding new Crawler in Sitecore Index at Runtime

There is a scenario.There is a Site e.g SiteA. I have created an Index for SiteA and a Crawler which point to a node inside SiteA. Now In future, I add two new Sites SiteB and SiteC. I want the ...
1
vote
3answers
102 views

Updating Item media field with specific media Sitecore powershell script

I have 400 product items. Previously, we have a common thumbnail image for all products. Now, I added a new image field (thumbnail image), all products I need to assign a common specific thumbnail ...
0
votes
1answer
84 views

Making customisations of Sitecores Rich Text Editor dialogs upgrade safe

Looking at this: awareweb.com/blog/customizing-sitecores-rich-text-editor-dialogs and this Unable to customize HyperLink Manager in Rich Text Editor in Sitecore, if we want to override EditorPage.aspx,...
0
votes
0answers
24 views

Sitecore services account external authentication graphql middle layer

We have a distributed backend system consisting of another CMS which maintains our user records. We currently user apollo to send auth requests to the main CMS system and retreive a JWT token. The ...
0
votes
0answers
47 views

SXA Sitemap is throwing error on CD , While its working fine on CM

We are using SXA based sitemap for sitecore 8.2, It's running fine for CM Environment , but for CD it's throwing error as follows(got from azure app insight): ___.Feature.SiteMetadataExt.Sitemap....
0
votes
1answer
48 views

redirect to error page if requested language in URL not configured [duplicate]

we have multilingual (FR / EN ) website .the issue is if we test with others language in URL like www/mydomain.com/dE empty site will disply our requirement is to redirect to error page in case if ...
0
votes
1answer
154 views

Password type field of Sitecore Item getting exposed on Version compare popup Window

I am facing a very strange issue in Sitecore 8.1 update2 instance. There is a field of Password type. Though in content Editor its value appears in dots format but on clicking Version-> Compare button,...
1
vote
0answers
56 views

How to execute stored procedure using Sitecore.Data.DataProviders.Sql.SqlDataApi

I am trying to execute SQL stored procedure from C# code using Sitecore data providers. I am using the SqlDataApi class from Sitecore.Data.DataProviders.Sql but not finding any method which accepts a ...
1
vote
0answers
113 views

How can create new score profiling into Sitecore?

I am indexing Sitecore items into Azure and performing the Azure search via Azure functions. I want to create a new Scoring Profile into Sitecore and use it during the search. I am not getting much ...
1
vote
1answer
58 views

Extra versions of items are created in other language

I am using Sitecore 9.0.2 and I have a listing page created by custom code, not sxa components. I am trying to get items using the context database and then querying its descendants using Item ...
1
vote
1answer
52 views

Maintenance Page in Sitecore Azure PaaS

I have a Sitecore 9.0.2 environment in Azure PaaS. It is connecting to different third party services to get and data. Whenever third party update their system or make any new release our portal goes ...
2
votes
0answers
100 views

Images are broken on Safari Browser [closed]

I'm using Sitecore 9.1, JSS and ReactJS. Some of the images are not showing on Safari but working fine on Chrome. Here's a sample url: /-/media/Intelligence-Bank/Folder/Folder/Logo/Logo.png?h=422&...
2
votes
1answer
124 views

Unable to customize HyperLink Manager in Rich Text Editor in Sitecore

I am trying to customize the HyperLink Manager in Rich Text Editor to add some extra fields. Sitecore version: 9.2 I followed these two articles: https://www.awareweb.com/blog/customizing-sitecores-...
0
votes
1answer
76 views

Changing the language does not retain the URL and path is chopped off after content item

I have implemented Item resolver for item "quote" [home->quote] like http://sss.com/quote/Certquote/32 by implementing public class CustomItemResolverForQuote : HttpRequestProcessor { .... } ...
0
votes
0answers
25 views

Issue - A tag scoring function must have tag parameters specified

I am trying to add new custom score profile into Sitecore for Azure Search as given below Added in the Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config file. <scoringProfile ...
1
vote
1answer
40 views

page template and his base template instance items

I have an Item in Sitecore, and I know it's derived from a certain base template. I have that base template ID, but I want to get the instance of this base template that is part of my page. I want it ...
3
votes
2answers
111 views

Connecting console application to XConnect in Azure Sitecore 9.2

I'm using Sitecore 9.2 scaled environment on Azure, and am trying to make a console application connects to XConnect, am following this link from Sitecore documentation. In the part shown in the ...
1
vote
0answers
43 views

Sitecore APIs throwing ERR_TOO_MANY_REDIRECTS

We have exposed Sitecore's authoring server via two URLs: https:// www[dot]authoring[dot]sitename[dot]com/sitecore https:// authoring[dot]sitename[dot]com/sitecore Both the URLs were working fine ...
13
votes
3answers
953 views

When to use Sitecore.Context.Items and why?

I just found Sitecore.Context.Items object as part of the Sitecore.Context. What is the use-case of using it and when I shouldn't use it?
1
vote
0answers
69 views

Accessing the RenderingContext.Current.Rendering.Item on controller in Sitecore 9 [duplicate]

I'm trying to get the current item for filter search value. When im trying to access the RenderingContext.Current.Rendering.Item it showing some kind of error. Please find my screen shot below. 1. I'm ...
-1
votes
1answer
67 views

How to use Sitecore.Web.WebUtil.ExtractLanguageName?

there is a method called "ExtractLanguageName(string localPath)" in WebUtil, which is suppoed to extract the language from the request url (I think). But what value for "localPath" does this method ...
8
votes
3answers
462 views

Exposing ServiceApiController in Sitecore 9.2

I am trying to expose a MVC route in Sitecore 9.2 for a web api I am creating. I followed the steps describe here but it only works when my controller inherits from controller. If I inherit it to ...
4
votes
1answer
283 views

Is the 100 child item limit still a valid rule of thumb?

I always understood that Sitecore recommends having fewer than 100 items under a node. Is this rule still valid? Does having too many child items only impact the Content Editor when opening the ...

1
2 3 4 5 6