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
1answer
40 views

Content Search API issue with Droplist and Treelist fields

I am facing a weird(might not be weird for experienced people) issue where ContentSearch API is returning null value for few fields while I can see the correct values in Solr. The fields whose values ...
0
votes
1answer
26 views

Custom facet field

In sitecore 9.3, when creating a new facet in documentation it is stated "Field Name - The lower case name of the field that is used in the index and that the facet is based on. You can enter ...
0
votes
0answers
11 views

How can I use the taxonomy identifier instead of the id, using the REST API?

I am working on a connector with a Sitecore Content Hub environnement. I am using the REST API, sending POST request to create some Assets. I wonder if there is a way to set a taxonomy relation with ...
2
votes
1answer
59 views

How to show success message alert on form submit in Sitecore 9 Forms in the same page?

I am trying to implement a custom Sitecore 9 Forms (not WFFM forms) functionality. And I need to show a success alert message on successful submission of the form. But here's the catch, The success ...
-1
votes
2answers
77 views

Sitecore instance and website in same browser with different tab is not working

Recently upgraded Sitecore 8.1 to 9.3, after that we are trying to open Sitecore instance and website in same browser with different tab but custom web services are not getting called while it is ...
1
vote
1answer
37 views

How to expose Sitecore SXA website content in JSON format to third party using custom API?

We have a Sitecore SXA website. Sitecore version is 9.0.1, SXA version is 1.7 We have to share the website content to third party in JSON format using custom API. So third party will consume this API ...
0
votes
0answers
93 views

Sitecore SXA dynamically changing presentation at runtime

I have a Sitecore 9.2 SXA solution currently holding five Sites. Let's say Tenant Corporate Site1 Site2 Shared Site3 Site4 All Sites are accessible, except for Shared, where there's a source of ...
0
votes
1answer
44 views

Sitecore.Context.Database.SelectSingleItem(“/page-help”) not working in CM

I have a code that query an alias item like this Sitecore.Context.Database.SelectSingleItem("/page-help") but I get an error saying End of string expected at position 42. it only throws ...
0
votes
1answer
40 views

How to Update Form submission Information in sitecore 9?

User Submit the Form data, insert those values by default in to "[ExperienceForms].[sitecore_forms_storage].[FieldData]" Table. how can we edit using API or Power Shell script?
0
votes
0answers
40 views

Dynamic Sitemap created from Content Hub data

So I am already using the built-in sitemap generator that comes with Sitecore 9.3 and that works fine. I am able to get out pages that are in the content tree. The issue comes when my company wants to ...
0
votes
0answers
14 views

Sitecore A route named 'sitecore_graphql_/api/xx' is already in the route collection. Route names must be unique. Parameter name: name [duplicate]

I am new for Sitecore JSS. I am using Sitecore 9.3/SXA/JSS - I am not able to login into my Sitecore after deploying UI components. I am getting "Sitecore A route named 'sitecore_graphql_/api/xx' ...
3
votes
0answers
65 views

Websocket integration in sitecore 9.3

We need to integrate the WebSocket client into the Sitecore project. We are using controller rendering, but I am not able to understand how to establish duplex communication with a WebSocket server. I ...
0
votes
1answer
23 views

How do I display the RTE/ Word Content in Asp.net webforms?

We have bee using Sitecore 8.1 and in 8.1 we use the Field Types RTE and Word more . Due to some reason i had to use Asp.net Webforms not MVC. Can any one please help me how do i dispay the content of ...
0
votes
1answer
40 views

Different results on different machines when fetching a Sitecore RTF

I'm building a web application and experiencing a weird issue. I have a Sitecore RTF containing some formatted text and a link In my web application I have an HTML file with the following snippet: <...
0
votes
1answer
38 views

How can I automate the reconnect of a Sitecore XC catalog after initialize of Commerce Engine?

Working with Sitecore XC, we need to reconnect the commerce catalog every time we do an initialize of the Commerce Engine. We can do this initialize optionally during development. We need to execute ...
2
votes
1answer
64 views

Sitecore ItemService API resolve …/link.aspx?_id=abc

the Sitecore ItemService API returns a field ÌtemUrl which contains something like this ~/link.aspx?_id=35D02976C748402A8E6F22A2827F4451&amp;_z=z Is it possible to turn this into a URL like www....
1
vote
1answer
63 views

Sitecore 9.3 FXM API 403 error

We are getting a 403 error when creating an external site in console logs and the following error message in External Site page: Could not validate beacon script - The remote server returned an error: ...
1
vote
1answer
98 views

Raw HTML in a Multiline text field in Sitecore 9.3

I created a new field in a template, it is a Multi-Line Text(name html field). I created a component and added on the page. I go to experience editor. click on the component to edit it. The html ...
1
vote
1answer
57 views

Return Sitecore Items as tree

Is there any possible to return a item children as tree? I tried to use GetDescendants however, all items are returned at the same level as a list. Example: -FORM ITEM1 ITEM2 ITEM2.1 ...
1
vote
1answer
47 views

Controller Rendering fields are NOT accessible to edit

I am unable to edit cacheable fields via API and if I edit once from the content editor then I can edit via API. Trying to enable cacheable for all renderings via API at the rendering level. These ...
4
votes
1answer
298 views

The type or namespace name 'Job' could not be found (are you missing a using directive or an assembly reference?)

I'm upgrading a project from Sitecore 9.1.1 to Sitecore 10. After I changed all the DLLs from Sitecore version 9.1.1 to 10.0 and migrated the project from .Net 4.7.2 to 4.8 I had this problem with the ...
0
votes
1answer
169 views

Setting up smtp for sitecore

Ok so I am tasked with setting up a submit action class to send an email. I setup everything like below and it gets all the way through till the send email and then throws an error "Unable to ...
0
votes
1answer
22 views

How to get engagement points[Goals] for the logged in user [duplicate]

I have created 2 goals for each page. Now, I want to retrieve the engagement points against the contact[logged in user] from the xDB. Any solution or input would be of great help.
0
votes
1answer
32 views

How to get sitecore users and the custom profile properties information using solr, sitecore core index [duplicate]

How to Get Sitecore Users and Their Profile Information using Sitecore Solr core index. I am having huge performance issues when I using the below sitecore api's. so I want to know whether this can be ...
2
votes
3answers
116 views

Getting Sitecore Users faster, filtering based on custom property

Need help with the performance issue with sitecore GetUsers Function. I have 80K sitecore users, and have custom property called "Accounts Assigned" in user profile. I am using pipe ...
0
votes
1answer
74 views

How can I change Username and Fully qualified name fields for the users programmatically? [duplicate]

I am trying to write a code that changes the username and the user quilfied name but all the fields I found were read-only, any help?
0
votes
0answers
80 views

404 issue for link.aspx?id= type of links

I am facing one issue for multisite. We have 2 sites in sitecore. The requirement is that if the node is present in one site and we are searching from another site with the url: https://www.site2.ca/~/...
0
votes
0answers
30 views

Sitecore ProcessMediaRequest is giving 404 for restricted media

I recently had a requirement to restrict secure media items to download so that only certain logged in users could download them. So to achieve that I have remove read access from the extranet\...
2
votes
1answer
34 views

Custom handler not getting triggered

I have a custom handler in my code (Sitecore 9.3). In the web.config: <handlers> <add name="JFSRedirect" verb="*" path="JFSRedirect.axd" type="Site....
0
votes
0answers
19 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
16 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
58 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 ...
1
vote
1answer
36 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
18 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
19 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
0answers
44 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 ...
1
vote
1answer
108 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
28 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
54 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
27 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
64 views

Where are the Sitecore workflow comments stored?

I am looking for the Sitecore path where the WorkFlow comments are stored.
0
votes
1answer
122 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 ...
0
votes
1answer
43 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
16 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
202 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
157 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}...
1
vote
1answer
53 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
202 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
127 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 ...

1
2 3 4 5
7