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

Method not found: 'Void Glass.Mapper.Config.set_EnableLazyLoadingForCachableModels(Boolean)'

We are upgrading GlassMapper to V5 and installed Glass.Mapper.Sc.90. I have done all the changes and mentioned in http://www.glass.lu/Mapper/documentation/Upgrade-ToV5.html link. After the changes, ...
0
votes
0answers
10 views

Sitecore 10.1 RenderingModelBase is null after upgrade

Item inside the RenderingModelBase is returning null. We have upgraded Sitecore to 10.1 from Sitecore 8.1. This works fine in Sitecore 8.2. This is the sample models public class ...
0
votes
0answers
26 views

How to display the JSON content of a SXA page in a sequential order in Sitecore 9.0.1?

We have a Sitecore SXA website. Sitecore version is 9.0.1, SXA version is 1.7. I am fetching the json data of a page by using default Sitecore resolvers and appending ?sc_device=json. But ...
0
votes
1answer
41 views

Sitecore CD Error Value cannot be null. Parameter name: item

I am getting an error when i try to hit any page in CD. It was fine and all of sudden started receiving this error. I am not able to figure out what caused this issue. Could anyone faced this issue ...
0
votes
0answers
21 views

How can I get all language versions of an item using the OData API?

I am retrieving a list of items using the OData REST API with the URL <server>/sitecore/api/ssc/aggregate/content/Items?sc_apikey=<key>. Without specifying a language parameter in the URL, ...
0
votes
0answers
24 views

Sitecore Commerce Bootstrap - Database Login Error

I am trying to get the commerce engine running. generated the toke and running the bootstrap command, getting the below error 'Login failed for user 'sa'. I have given full permissions on the commerce ...
0
votes
1answer
39 views

Change the template and retain the field value (internal link to a general link)

I have a template and it is inherited. I have a field called website. I need to change the website field from internal link to a general link. When i do that, I loose all the values. How can i retain ...
0
votes
0answers
60 views

Images show relative path in preview mode but in Normal it shows absolute path Media.MediaLinkServerUrl Setting

I have changed one of the settings in both cd and cm server in the Sitecore.config file to show the absolute path for our media images. The setting is Media.MediaLinkServerUrl <setting name="...
0
votes
2answers
51 views

Sitecore (version 8.2) Itemservice returns a 404 NotFound

As the title suggested, I'm getting a StatusCode NotFound (404). Everything as far as I know has been setup correctly. Been reading and following this to a T: https://doc.sitecore.com/en/developers/82/...
0
votes
0answers
71 views

How can I get UploadedFile (upload from out of box Sitecore Form) Blob / fileContent?

How can I retrieve Filecontent from [sitecore_forms_filestorage].[FileStorage] based on id value? I tried the below code, but got a "_fileStorageProvider is null" error. Guid fieldid = Guid....
4
votes
0answers
602 views

Is there a generic way to get page source of current page / Sitecore.Context.Item without downloading it?

Is there a generic way to get the HTML page source of the current Sitecore.Context.Item without downloading it, so, it will cover all (WebForms/Sitecore.Mvc/JSS etc.) scenarios? Is it possible to get ...
0
votes
1answer
28 views

Trying to use the Sitecore ItemService in our UITests but receiving a 500 error with the following log

As the title says, our project contains a a UITesting project that uses the ItemService to login and do perform actions such as create an item, check if an item exist, etc. However for one of our ...
0
votes
0answers
28 views

Deleting the item from the WEB database when the item unpublish date and time is over [duplicate]

I have an item. I select the Date and time for that item to unpublish(MASTER). When the date and time passes, I switch to the web database and I still see that item there. We have a service that calls ...
0
votes
2answers
37 views

Possible to retrieve PDFs deleted from the media library or retain their URL for new version?

I have deleted some PDFs from the Sitecore media library by replacing them with new PDFs which were already added to the library. As a result, the media URL is now changed. The owner now says they ...
0
votes
0answers
31 views

Issues with Federated Authentication on a multi site architecture for separate client id per site

For a multi-site architecture, we have separate client id for each site under the same Auth0 Domain. In the IdentityProviderProcessor, whenever I try to assign clientId for the relevant site inside ...
1
vote
1answer
61 views

Get current site in IdentityProvidersProcessor for Federated Login

We have a multisite architecture, and I am working on implementing the federated authentication using Auth0 for visitors login/signup. I need to fetch separate client id and secret per tenant based on ...
0
votes
0answers
37 views

XHTML validation error when trying to edit from experience editor

I have a aspx layout file with format <a href "www.abc.com"> <sc:Placeholder Key="footer1" runat="server" /&...
2
votes
1answer
50 views

Jss not recognized as internal or external command while running in C#

I am calling a batch file via c# using powershell library, I see the below error 'jss' is not recognized as an internal or external command, Whereas manually executing the batch file runs with no ...
0
votes
2answers
73 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 ...
1
vote
1answer
37 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
1answer
26 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
168 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
93 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
84 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
101 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
79 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
59 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
41 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' ...
0
votes
0answers
74 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
24 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
45 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
44 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
75 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
90 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
170 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
70 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
54 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
386 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
353 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
24 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
37 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
168 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
99 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
100 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
33 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
36 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
20 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
18 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
114 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
2 3 4 5
7