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
18 views

Link click handler

I am trying to save clicked component name in a custom analytics database. I tried to find if there is any pipeline to handle link click but without success. Though I am able to modify Item link ...
0
votes
0answers
15 views

ItemAuthorizationHelper class implementation in Sitecore 9.3

We have recently upgraded our project from sitecore version 8.2 to 9.3. In one place we have implementation for ItemAuthorizationHelper class. ItemAuthorizationHelper class having different ...
0
votes
0answers
25 views

System.ArgumentNullException: Value cannot be null. Parameter name: rolesInRolesManager

Recently upgraded project from Sitecore version 8.2 to 9.3. But on accessing application getting below error. Value cannot be null. Parameter name: rolesInRolesManager Description: An unhandled ...
2
votes
1answer
23 views

Exception stack trace suggests exception occurred in line with calls to ID.TryParse

On our UAT environment, I am getting an exception on certain page types with a stacktrace pointing to a specific class and line number. The problem, is that the line in question should not be able to ...
1
vote
0answers
14 views

Sitecore IP Geo location Service-Personalization with Geo-based conditions does not work in sitecore 9.1.0 [duplicate]

Sitecore Personalization using GEO IP is not working. Geoip service is working fine but default sitecore rule for geoip based is not working. Any help would be appreciated..
0
votes
0answers
16 views

Order of Items in GetChildren method [duplicate]

I have Sitecore 9.3. I am using GetChildren() method to read all the children under a folder. I tried to identify a pattern in the sequencing of items but was unable to do so. I did saw the post at ...
1
vote
1answer
32 views

Get IP address for any Content Author who uses Content Editor [closed]

I want to know how can I get IP address for any content Author who uses Content Editor, so that I can write this IP address in the log file. I have created an event handler to handle Save action and I ...
0
votes
0answers
30 views

When I click the Workbox, I am getting “Could not parse the language 'en-BG'. Note that a custom language name must be on the form.” error

When I click Workbox, I am getting the below error: "Could not parse the language 'en-BG'(not only for this there are many languages). Note that a custom language name must be on the form." ...
1
vote
1answer
47 views

clean up draft items in workbox

I have a requirement where I have to clean up the draft items in sitecore workbox which are there for more than two years in workbox. Can anybody tell me from where/how to start and how to access ...
0
votes
0answers
27 views

Custom logging in Sitecore 9.1 update 1

I have to implement logging in Sitecore to write custom logs in Azure Application Insights. I want to use Serilog to achieve it. Any reference will be helpful for me. Version: Sitecore 9.1 update 1 ...
0
votes
0answers
35 views

Linking JSON Multilist Reference to Multilist doesn't pull items back

I am currently configuring a JSON Multilist Reference so that I can have a sub-array in my JSON Device of objects. For example, my desired JSON should be like: { "data" : { "...
0
votes
0answers
24 views

Looking for sitecore WF comment pipeline

I am looking to see if there a way to pre-fill the fields in the comment template, just wondering if there is a pipeline to do this?
1
vote
1answer
43 views

Where are the Sitecore workflow comments stored?

I am looking for the Sitecore path where the WorkFlow comments are stored.
0
votes
1answer
52 views

Editing Field In Save Event Handler Requires Two Saves to Populate Field Or In Lower Environment Requires A Different Field To Be Changed

For a Sitecore 8.2 solution I have a save event handler that populates a field on an item of several different templates based upon items that refer to its child items via the Link Database. That ...
1
vote
1answer
28 views

Get Experience Forms Reponse Statistics using API

In a Sitecore Form for example if I have list of questions with list of radio button answers. Does Sitecore have an API to return the statistics of how many users choose this answer? I'm using ...
0
votes
0answers
13 views

Error.html page code showing up in meta description of my homepage

Html code is showing up inside the meta description on my google result for the hompage of my site. This only happens on the homepage; all of the other pages show their correct meta description. How ...
0
votes
0answers
14 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
94 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 ...
1
vote
2answers
61 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
1answer
45 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
81 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
92 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
75 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
42 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
50 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
26 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
48 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
37 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
43 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
59 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
39 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
17 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
2answers
64 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
168 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
47 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
126 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
43 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 ...
1
vote
1answer
75 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
75 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
41 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
68 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
44 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
116 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
112 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
97 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
49 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
99 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
310 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 ...

1
2 3 4 5 6