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
39 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
31 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
51 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
26 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: (...
0
votes
1answer
57 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 ...
0
votes
1answer
43 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
44 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
179 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
84 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
21 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
29 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
92 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
51 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
69 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
28 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
35 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
27 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
16 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
1answer
39 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
44 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
65 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
50 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
26 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
49 views

Where are the Sitecore workflow comments stored?

I am looking for the Sitecore path where the WorkFlow comments are stored.
0
votes
1answer
80 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
35 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
135 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
88 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
136 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
109 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
96 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
44 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
52 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
33 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
62 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
41 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 ...
3
votes
0answers
49 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?
1
vote
1answer
70 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 ...
1
vote
1answer
52 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
19 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
83 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 ...
1
vote
0answers
250 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
2 3 4 5 6