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
0answers
12 views

Getting Warning for ProtectMedia Request in Sitecore 8.2

I am getting the the below Warning in Sitecore log, we have enabled Sitecore Media Protection feature. Warn: An error occurred when calculating the hash value for a media URL. The specified media URL ...
0
votes
0answers
65 views

GetItem() method returns null or outdated state of the item

We faced a problem with getting item data from DB. GetItem() method behaves in non deterministic way. We have two instances of Sitecore: clients instance 9.0 and our local instance 9.1. On clients ...
0
votes
2answers
41 views

Sitecore Solr multiple filter tagging / excluding

I am using Solr facets and I want to filter tagging and exclude it. My query is : https://localhost:8989/solr/rya_custom_web_index/select?q=*%3A*&fq={!tag=courseactivities_s:Dinghy}...
0
votes
0answers
24 views

How can we create CommerceCustomer using Commerce Plugin

We have a scenario where the client will add customers (company information) with properties like Company Id, Company Name from the business tool as user specific. Lets say a scenario, where I am the ...
0
votes
1answer
43 views

Accessing Sitecore Context in a normal API

I'm working on a project where I have a controller with a few endpoints which can be called from sitecore and non-sitecore sites. This works fine. Now I have to add a different endpoint which needs to ...
2
votes
1answer
62 views

Get Item in Code behind while security is applied on item

We need to show some items to some particular users on our website based on some security roles applied and need to show lock icons to other users. But in code behind we are getting null items, on ...
0
votes
3answers
58 views

How can I know by code if the current sitecore instance is an XP or XM?

I want to be able to determine in code if the current Sitecore instance is an XP or XM. As far I can see there is no direct way to do this, am I correct? If so, would it be advised to check if xdb is ...
0
votes
1answer
40 views

Return Sitecore item as list of Model

I am trying to return sitecore items list from my controller as list of model type eg. public List<PageContent> Results { get; set; } I need to get the list of items in Results. Using ...
1
vote
1answer
46 views

Making config settings configurable for user

I am using Sitecore 9.3, SXA. I want to make some of the current config settings configurable from within Sitecore. I have created a template with all of the fields (e.g. MediaResponse single text ...
-1
votes
1answer
21 views

Item disappeared from Content Tree while renaming but appearing in Search

Recently a very strange issue happened with me. I renamed an item and after that it got disappeared from Content Tree but its still appearing in Sitecore Search. I checked in Standard fields and its ...
0
votes
0answers
37 views

How to get General Link Field in RenderFieldArgs?

I have made a custom processor to add custom code to General Link Field and Rich Text Field. But in the (RenderFieldArgs args) I am only getting rich text field, the General Link Field is not coming. ...
0
votes
2answers
33 views

How to allow only 1 role to have read access to an item?

I want specific website users to have access to the "Secret" pages of the website. I have created a new role in the Extranet domain i.e. Extranet/SecretPageRole. Now, how do I assign roles ...
2
votes
0answers
35 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
39 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
34 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
11 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
36 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
68 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
58 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
40 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
58 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
38 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
20 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
27 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
59 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
67 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
39 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
60 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
39 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
52 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
91 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
69 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
36 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
35 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
62 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
205 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
1answer
265 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
41 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
35 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
173 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
103 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
27 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
54 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
49 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
203 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
65 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
136 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
65 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
58 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
132 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&...

1
2 3 4 5 6