We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

39 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
236 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
566 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 ...
3
votes
0answers
25 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 ...
3
votes
1answer
240 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 ...
2
votes
1answer
147 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
111 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
314 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
67 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
0answers
27 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
45 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
74 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
36 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
265 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
33 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
141 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
128 views

Injecting dependencies into custom ServicesApiController without using ServiceLocator

I am injecting a dependency into an custom Api controller I've created that is inheriting from ServicesApiController. I have found that I need to use our service locator class to do this as otherwise ...
1
vote
0answers
114 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
127 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
82 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
214 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
1answer
34 views

How to use Sitecore.Web.WebUtil.ExtractLanguageName?

there is a method called "ExtractLanguageName(string localPath)" in WebUtil, which is suppoed to extract the language from the request url (I think). But what value for "localPath" does this method ...
0
votes
0answers
20 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
45 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
27 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
32 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
74 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
57 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
38 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
53 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
47 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
64 views

Sitecore Commerce 9 - B2B Organizations Support

Does Sitecore Commerce 9 or Sitecore XP supports B2B OOTB? So, here what I mean: Organization: organization should contains multiple users with multiple roles, it should contain different fields, ...
0
votes
0answers
122 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
141 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
267 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
175 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
44 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. ...
0
votes
0answers
32 views

Sitecore Item Api Fail Fast

i am wondering why did i could create the same Item repeatedly and remove the same item repeatedly on the same requests. Does Sitecore automatically commits database changes on the end of requests? ...
0
votes
0answers
517 views

How to automatically escape item paths for use in Sitecore query

Is there some API utility method which can automatically escape an item path for use in a Sitecore query? I am building a query string in code which uses an item path. If the item path contains a ...
0
votes
1answer
99 views

sitecore language selector in site header

i have multi-language sitecore website and i m trying to create a language selector in my site header to change site language . im trying this code but not working : @{ string siteurl = string....