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.

54 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
665 views

Getting the page ID when clicking a custom link field in Sitecore

I am creating a new link field in Sitecore following this link: Link for custom link field I have successfully created one called modal link. Specifically I want to get all the modal components that ...
4
votes
0answers
317 views

Unable to get Dictionary Item value using sitecore Scheduler event

I have created A Sitecore Scheduled Task to send email. I have to read some settings from a Sitecore Dictionary but receiving only key not value. After debugging I have found that Sitecore.Context is ...
4
votes
1answer
289 views

How to track the user behavior and personalization on mobile Apps using Xamarin Sitecore SDK?

I need to provide the personalized content to the mobile apps through SSC/Sitecore mobile SDK and track the user behavior and capture in the xDB. As per my understanding, "Sitecore Mobile SDK ...
3
votes
0answers
28 views

Restoring marketing taxonomies with Sitecore powershell extenstion

I am trying to automate Sitecore upgrade from 8.1 to 9.0.1. In Upgrade steps, There is one step restoring deleted marketing taxonomies, which can easily be done with Url navigation and click button on ...
2
votes
1answer
236 views

Error occurred while loading Experience Profile

I am facing an issue where the error is occurring while loading the Experience Profile. I am working on Sitecore 9.0.2 version. Error is shown as below:- When I hit the Sitecore API URL as shown ...
2
votes
0answers
183 views

Index update process are running repeatedly in same index

We have this api that is creating and publishing item programmatically. (This item is created under a bucket folder). I've checked the logs and noticed that in between the process, our index are being ...
2
votes
2answers
531 views

Custom Experience Button edit the Datasource item fields

I need to add a new button in the custom experience button. I watched some https://www.youtube.com/watch?v=D6jqqaBMu0s regarding the field editor button. That field editor gives you option to only ...
2
votes
0answers
73 views

Encrypt zip file while uploading to media library folder sitecore 8.2

i have followed the sitecore link and create my custom processor for (Sitecore.Pipelines.Upload.Save). i have faced issues while saving all media items. it gives error on file.SaveAs(filename); ...
1
vote
1answer
51 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
0answers
53 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
104 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
0answers
43 views

Sitecore APIs throwing ERR_TOO_MANY_REDIRECTS

We have exposed Sitecore's authoring server via two URLs: https:// www[dot]authoring[dot]sitename[dot]com/sitecore https:// authoring[dot]sitename[dot]com/sitecore Both the URLs were working fine ...
1
vote
0answers
47 views

How can the Sitecore search API be extended to support Azure search traffic analytics?

I'm experimenting with adding support for conditionally returning SearchId for Azure search traffic analytics purposes (https://docs.microsoft.com/en-us/azure/search/search-traffic-analytics) as part ...
1
vote
0answers
56 views

JSS Headless mode issue

I am trying to run my local jss app in headless mode. while trying to hit the jss service, I am not getting the expected o\p. I can the security info object has 401 as statuscode. If I try hitting ...
1
vote
1answer
103 views

Sitecore domain and sub domain authentication

Parent Site Url: www.site1.com Sub Domain Url: www.abc.site1.com We have the requirement like create the sub domain(abc.site1.com) in separate instance and use the login & registration ...
1
vote
0answers
43 views

What's the best way to upstream and downstream media in Sitecore?

Recently I came across a requirement to define the best strategy to upload and download media for Mobile App. Website data is managed under Sitecore CMS currently. At first glance, below thoughts ...
1
vote
0answers
531 views

jQuery AJAX GET request returning “parsererror” error response message

In a scope of Sitecore Web project an API Contoller is used. Got the following response error message during jQuery AJAX GET API request: On a back-end side I use IHttpActionResult action method that ...
1
vote
0answers
34 views

Not able to create a new SXA Accordian items in IE

I am trying to add a new SXA Accordian component from Experience editor in IE but not able to get 'Create' link which is working fine in Chrome. PFB Screenshots
1
vote
0answers
201 views

Can't create contact list

I couldn't create contacts list and getting following exception, HTTP POST URL http://x/sitecore/api/ssc/ListManagement/ContactList Exception Sitecore.XConnect.XdbSearchUnavailableException: The ...
1
vote
0answers
129 views

Sitecore MultiLanguage Content changes the URL. Results 404, Not found error

I'm having an issue in my site.I'm using VirtualFolder property to change the site language content. I've a link 'Environment' and my default site language is Chinese. So,the URL looks like www.xyz....
1
vote
0answers
137 views

Restricting user from forcing manual submit to the Sitecore Url

Looking for the best practices to tackle a user behavior in my Sitecore 7.5 application. Basically there is an action method decorated with the [HttpPost] attribute. This action is invoked through ...
1
vote
0answers
90 views

How to get input value from textbox and store that in content tree in Sitecore?

I have created a textbox and button in a View Rendering. Now I want to know that how to store the input value from this textbox by clicking button and store that in content tree. How would I do that?...
1
vote
0answers
228 views

Sitecore Commerce Categories children is not being populated. “GetNavigationViewModel”

I have setup Sitecore 8.2 + Commerce Server + SOLR I have created Catalog under departments. "Commerce Catalog Manager" [Commerce Catalog Manager] ABC (category) ZYX (sub Category) ZZZ (sub ...
0
votes
0answers
36 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
14 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
18 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 ...
0
votes
1answer
51 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
1answer
87 views

Index has not been initialized on content management server

We are getting an issue "index has not been initialized" if clicks any of the Sitecore content tree items in the content editor, Does anyone know how to solve this. Thanks, Suresh
0
votes
0answers
72 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
0answers
139 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
34 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
29 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 ...
0
votes
0answers
22 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
42 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
74 views

Changing the language does not retain the URL and path is chopped off after content item

I have implemented Item resolver for item "quote" [home->quote] like http://sss.com/quote/Certquote/32 by implementing public class CustomItemResolverForQuote : HttpRequestProcessor { .... } ...
0
votes
0answers
23 views

Issue - A tag scoring function must have tag parameters specified

I am trying to add new custom score profile into Sitecore for Azure Search as given below Added in the Sitecore.ContentSearch.Azure.DefaultIndexConfiguration.config file. <scoringProfile ...
0
votes
0answers
29 views

Building a dynamic table using Sitecore Webforms

So I'm building a dynamic table using webforms . The header, sections, rows and columns are dynamic but the coumn count has to be same for the table. My table looks like this My Sitecore data ...
0
votes
0answers
82 views

Using Sitecore GraphQl in C# and send data to JSS

I am figuring out the Sitecore GraphQL Query where I need to use it as a query in my C# code (if that possible) where I just get all the items of a specific location in the Sitecore Tree. However, I ...
0
votes
0answers
30 views

Storing Cookie acceptance details

We have a requirement when end user accepts cookie pop-up, the details like the text of the pop-up/version, whether user accepted or rejected it, the userid/interactionid , timestamp. Is there any ...
0
votes
0answers
39 views

Sitecore.SharedSource.WebApiClient Not Found in Sitecore 9.0

The dll Sitecore.SharedSource.WebApiClient is not available in sitecore 9.0 . Is there any alternative way to use Sitecore shared source web api client in C#, in old version of sitecore project it was ...
0
votes
0answers
188 views

Message: Value cannot be null. Parameter name: context.Contact

I am working on Sitecore 8.2 version. I am getting an exception in production environment log file. I am not able to replicate same issue in my local neither able to figure out why this issue is ...
0
votes
1answer
79 views

How to get the component item when debug from the page?

I have a Template for Page and in my layout, I have provided placeholder let’s say for example Header. I am previewing my page and trying to debug my component view of the Header, I am trying to get ...
0
votes
2answers
150 views

Is it possible to get page content dynamically (Not HTML but field values which are displayed on the page)?

Is it possible to get the few renderings' (present on the page) contents dynamically, but the catch is like I don't want HTML instead I want the field values which are used to be displayed on the page....
0
votes
0answers
78 views

How to retrieve an item in Draft workflow state

I have a script that goes through the tree starting at a certain node to find all items of a specified language version not in a publish workflow state and switch them over to the publish state. ...
0
votes
0answers
65 views

Calling component from another component via anchor link

I have a modal component which is basically a popup with some content in it. I have to ask if it is possible to link that component from another component. For example I have anchor link in another ...
0
votes
0answers
231 views

The partial view '/Areas/company/Views/PartialLayouts/SpotContainer.cshtml' was not found or no view engine supports the searched locations

Recently we have upgraded Sitecore from 8.1 version to 9.0.1 version. After upgrade few of the pages were not able to load and it is showing following error. The partial view '/Areas/company/Views/...
0
votes
0answers
199 views

Multilist items render on MVC view by razor sysntax

I have a footer template that have Title, Description and links. Links are multi-list. I need to render the selected items from links multi-list with Title and description on footer view. I know how ...
0
votes
0answers
355 views

Sitecore SolrNet - The given key was not present in the dictionary error

We are using SolrNet open source client in Sitecore 9.0 update2 and SXA 1.7 version. We have written this code to get SolrConnection: Assert.ArgumentNotNull(searchcontext, "searchcontext"); var ...
0
votes
0answers
230 views

Programmatically move items from web to master database?

I have a utility page that creates Sitecore items from a csv file. This utility page is used to import thousands of items at a time, which are used for interactive map data. The items are stored in ...
0
votes
0answers
49 views

“virtual” sites in the navigation tree

When I have have my navigation tree with page X and page Y and some content on page X and I need to show the same page X with the same content under an other content tree. E.g. page X under page Z. ...