Questions tagged [pipelines]

Questions about working with all the Sitecore pipelines: custom processors, patching, configuring, ...

Filter by
Sorted by
Tagged with
1 vote
3 answers
220 views

AuthorizationFilterAttribute OnAuthorization method is not firing in Sitecore 10

Authorization filter attribute is not firing public class AuthenticationRequiredAttribute : System.Web.Http.Filters.AuthorizationFilterAttribute { public override bool AllowMultiple ...
Himanshu Agarwal's user avatar
0 votes
1 answer
64 views

Theme is not switched when overriding DoGetThemeItem

I am implementing this article so I can switch themes based on the a cookie or query string. My code is as follows. protected override Item DoGetThemeItem(Item item, DeviceItem device) { ...
William's user avatar
  • 103
1 vote
2 answers
96 views

Sitecore KickUser Programatically

I have implemented some custom functionality to implement to kick the user, which is working fine but when I see sitecore/client/Applications/LicenseOptions/KickUser.aspx page then that kick user ...
Swati Gupta's user avatar
  • 2,952
1 vote
1 answer
35 views

Is it possible to prefill workflow comment template based on value of content item?

In my content item, I have a field called "MyField." Additionally, the workflow comment has its own field called "MyField." I am wondering if it is feasible to automatically ...
Shiva's user avatar
  • 379
1 vote
2 answers
110 views

Custom item:saving breaking Final renderings Sitecore 10.2

Working in Sitecore 10.2, we have a new site that we've added custom processors to to update fields on item:save that need to be automatically generated. We have a very simple processor that sets a ...
Erica Stockwell-Alpert's user avatar
1 vote
1 answer
63 views

Updating other item in the custom publish pipeline not working

I am trying to update an item inside custom publish pipeline in Sitecore 10.2. It does get updated once but if pipeline runs again the item is not updated. The item update code gets executed every ...
Arun Kumar's user avatar
0 votes
2 answers
459 views

GetImageFieldValue in RenderField pipeline not able to hit

While extending Sitecore.Pipelines.RenderField.GetImageFieldValue not getting hit in my code. Even my component contains media field in it, any specific reason ? OR is there any other way to replace ...
Singh's user avatar
  • 105
0 votes
0 answers
14 views

Get Url with section value in HttpRequestProcessor [duplicate]

I am building redirect module where i need to get the request url from browser with section value. Example : https://www.site1.com/news#category1. I am not able to get #category1 in code using args....
Prateek's user avatar
0 votes
1 answer
113 views

RenderField pipeline not giving single and multi line field type

I was trying to extend RenderField pipeline, I tried below, but still not getting single-line or multi-line Field TypeKey. I am using Sitecore 9.1 initial release is anything I am missing? -Sitecore....
Pushpendra Singh's user avatar
0 votes
2 answers
206 views

Get complete url in HttpRequestProcessor

I want to get the complete URL in HttpRequestProcessor pipeline. When I hit https://www.abc.com/#section-1, currently args.RequestUrl is not returning the section path. How to get complete URL with ...
sachin Kumar's user avatar
1 vote
3 answers
291 views

How to Recall a Sitecore Pipeline and Processor?

I want to call EnsureDevice Processor from EnsureSessionContext pipeline after certain conditions met. public virtual void Process(PipelineArgs args) { string countryCode= ...
Ankit Pradhan's user avatar
0 votes
1 answer
83 views

One or more local models conflict with the xDB service layer. 'AssemblyFacetKeyModel, 1.0' does not have a remote version'

I have added a new model for my custom facets but it's throwing the following exception while calling the GetClient() method. One or more local models conflict with the xDB service layer. '...
Okasha Momin's user avatar
3 votes
1 answer
157 views

What pipeline is triggered when a form is created in the forms builder

I just tried to create a form based on template that was created before. The mail campaign is set up correctly in the template, but the problem is that all token mappings are lost for the new form. I ...
Sara's user avatar
  • 81
0 votes
2 answers
168 views

Call Action Method in all pages using Pipelines?

Is it possible to use Pipelines and call specific action method in every page? Im trying to build a Modal Popup based on User IP it will redirected user to user-specific country. But this Action ...
Suman Baul's user avatar
4 votes
1 answer
185 views

How to replace custom token that is in RichText field using Sitecore JSS?

I have a custom token %tokenname% in single line text and richtext fields. I would like to replace the token with some custom value in the Sitecore JSON rendering. Please see some example data below: {...
Ray Zhang's user avatar
1 vote
0 answers
34 views

Redirect mapping media item in Sitecore SXA [duplicate]

I have already asked the question related to redirect mapping of media item in Sitecore SXA. This question is related to get this functionality though custom code or pipeline. I have not found any ...
Nisha's user avatar
  • 411
0 votes
0 answers
110 views

sitecore language cookie overwrite in arabic version

I am using Sitecore 10 with JSS Angular app, I need to set site language cookie {{mysite}}#lang to be HttpOnly so I have created the HttpRequest pipeline processor. public class CookieProcessor : ...
shimaa elsayed's user avatar
0 votes
2 answers
360 views

Sitecore pipelines initialize processor initializeroutes runtime error [duplicate]

Getting Sitecore pipelines initialize processor initializeroutes runtime error:- causing runtime error
luckymow8's user avatar
0 votes
0 answers
151 views

Sitecore Helix Template(Anders Laub) Azure DevOps Pipeline builds not bringing Views from Feature projects

I have a Sitecore 9.3 installation on a VM and have Visual Studio Code on the host machine. When we build, then code gets pushed from host to VM IIS. This works fine on local to VM. I have a pipeline ...
Mhoque's user avatar
  • 113
0 votes
0 answers
89 views

HttpNotFound with custom 404

In one of our MVC controllers we have: public ActionResult Index() { return HttpNotFound(); } This HttpNotFound will set the StatusCode to 404. We would like to 'catch' this 404 status code and ...
Centiyo's user avatar
  • 31
0 votes
1 answer
204 views

How to read parameters from WorkflowPipelineArgs

The above action is configured with parameters. How can get the parameter value in WorkflowPipelineArgs? args.parameters returning the null value.
Baskar John's user avatar
1 vote
1 answer
350 views

Clearing Sitecore cache on publish for specific items

I want to clear custom cache when items at specific path are published. Here is what I tried so far. Solution 1: I created a custom event handler for publish:itemProcessed and publish:itemProcessed:...
Imad's user avatar
  • 235
1 vote
1 answer
370 views

Issues with IdentityProvidersProcessor Sitecore Federated Autentication in multisite architecture

We have 5 websites (e.g. A, B, C, D and E) and with separate clientId in Auth0. We have relevant IdentityProvidersProcessor for these applications. Sometimes when cms is left idle, upon reloading the ...
manaslu's user avatar
  • 397
0 votes
1 answer
261 views

installing SC Hotfix 513229-1.zip using Azure Pipeline

I want to install SC Hotfix 513229-1.zip for Sitecore XP 9.1.1. https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB1000489. I want to push this to Release Pipeline. I had done ...
cnupdx's user avatar
  • 1
0 votes
1 answer
66 views

Trying to add publishing database for Unicorn Sync when building

So I have two CD servers setup and seems like our Unicorn syncing is not completely setup because in the config it currently just has "web". So I need to add our "web_uk" CD to ...
user1566783's user avatar
0 votes
0 answers
187 views

Sitecore Save Check Revision Custom processor

Using Sitecore 10 Experience editor save is not working. So i got a custom processor to use instead of the default one from sitecore support. I created a class and added the processor and also a patch ...
Aswathy's user avatar
0 votes
2 answers
580 views

How to get the item currently being published from publishing pipeline

I am trying to build a custom publishing pipeline in SC 9.3 where I need to do some custom operations on the items being currently published. I created a custom pipeline and the code looks like below: ...
9_9's user avatar
  • 121
1 vote
1 answer
156 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 ...
manaslu's user avatar
  • 397
1 vote
1 answer
373 views

Custom Pipeline not being called

We have created a custom pipeline to append extra header details for PDFs. This works well on our local boxes however when we push the code to our UAT server hosted on Azure the pipeline is not called....
James's user avatar
  • 43
2 votes
2 answers
369 views

Can't submit facet: "Unknown type" exception

I'm attempting to write a custom facet to a contact in Sitecore 10.1, and I keep getting the following error: Unknown type Description: An unhandled exception occurred during the execution of the ...
Michael Smith's user avatar
2 votes
1 answer
154 views

In Sitecore 9.3, SuppressFormValidation is not available, what is the replacement?

We are upgrading from Sitecore 8.2 to 9.3. In our 8.2 solution, there is a patch created with the type SuppressAdfsFormValidation <sitecore> <pipelines> <preprocessRequest> ...
Geetha's user avatar
  • 123
2 votes
1 answer
671 views

How to check if a cookie is sent by the browser or added in Sitecore pipelines?

If a cookie is added in any of the sitecore pipelines, it will already be in HttpContext.Current.Request.Cookies in the next pipeline. I have to check if the browser sent any cookies, but because of ...
Aron Toth's user avatar
0 votes
0 answers
15 views

My custom pipeline is not executing if trigger from any Sitecore CMS pages other than Experience Platform screen [duplicate]

Here is my issue, I have patched a custom pipeline before the "GotoLogin" pipeline, in order to redirect a user to a custom login page post user's clicked on the logout button. My patch ...
Bharath's user avatar
  • 85
1 vote
1 answer
327 views

HttpRequestBegin pipeline not working in SXA multisite

I have installed Sitecore 9.1.1 locally with the domain as "sc911" and in this instance I have installed the client's multisites (using a script that installs the packages), built using SXA. ...
Jumping Rabbit's user avatar
2 votes
0 answers
72 views

How to access IP Geo location services in sitecore 9.3 when Tracking is disabled

How to access IP Geolocation services in Sitecore XP version 9.3, as we are going to disable Analytics tracker in a custom processor (Cookie Consent) which is called before CreateTracker processor of ...
Jinu's user avatar
  • 117
2 votes
0 answers
68 views

How to replace/register 'ResizeImageStream' method of class 'Sitecore.Resources.Media.ImageEffectsResize' from Sitecore.kernel dll

I’ve extended SqlServerDataProvider to use the azure blob storage account for storing the media library assests.Everything works fine but Sitecore.Resources.Media.ThumbnailProcessor throws an error in ...
Hina Thakkar's user avatar
1 vote
0 answers
539 views

Triggering Unicorn Auto-Publish on Dedicated Publishing Instance

We have a dedicated publishing instance and would like to use it when we run the Unicorn auto-publish. Currently when running the unicorn sync the publish always uses the CM server, even though we ...
Adam Seabridge's user avatar
1 vote
1 answer
281 views

Is there any way to update the response of a controller action by pipeline process?

Is there any way that I can update the response of a controller action by pipeline process? In httpRequestEnd or httpRequestBegin for example P.S: I'm using Sitecore 9 update 1 included EXM. I created ...
Tai Vo's user avatar
  • 29
0 votes
1 answer
313 views

GetChromeDataProcessor usage

I am using the GetChromeDataProcessor processor as below. But I have a problem with the GetChromeDataProcessor inheritance. I am getting en error "GetChromeDataProcessor is absolute so Please use ...
Venu Gopal's user avatar
2 votes
1 answer
340 views

How do I hide a field from display in the Experience Editor's component editor?

I need to hide a template field on both Content Editor and Experience Editor. For Content Editor, I could achieve it by overriding the GetFields pipeline. It still shows up on the Experience Editor. ...
rpatwari's user avatar
1 vote
2 answers
137 views

How can I render a "stub" one-line div for renderings hidden by personalization rules instead of having them completely removed from the DOM?

Our Sitecore 9.0 MVC solution makes extensive use of personalization rules to conditionally hide certain Renderings. But we have marketing automation software that scans the DOM for certain data-...
pirsqua's user avatar
  • 153
2 votes
1 answer
376 views

How to derive from the obsolete ExecuteRequest pipeline processor

We are upgrading to SC9.3. A custom class UserRequestProcessor which inherits from ExecuteRequest has errors now, as the new ExecuteRequest class in not a parameterless constructor anymore. The ...
sukesh's user avatar
  • 3,109
1 vote
1 answer
697 views

Pipeline to override image field data source

I'm trying to see if I can over-ride the datasource location of an image field for content editors when selecting the data source (not at render time). E.g in the browse media dialog window that is ...
Adam Seabridge's user avatar
1 vote
2 answers
987 views

MediaCreator.CreateFromStream creates an item with the template "File"

I'm using Sitecore.Resources.Media.MediaCreatorOptions and Sitecore.Resources.Media.MediaCreator to programmatically create media items. I've set the MediaCreatorOptions.FileBased property to false ...
Iceape's user avatar
  • 617
1 vote
1 answer
424 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 ...
Avinash J's user avatar
  • 313
2 votes
1 answer
776 views

How do I programmatically get an item on which I am performing a publish?

How do I programmatically get an item on which I am performing publishing, irrespective of checkbox being checked (smart publish/ republish or publish related items or publish subitems)? I don't want ...
Niti Chauhan's user avatar
0 votes
0 answers
155 views

Trying to show children of items (with Lock child relationship = true) in a bucket

I am trying to let children show up when you search and open a item that is in a bucket (Lock child relationship is set to true). This blog post describes this: http://www.goblinrockets.com/2015/03/...
Barsonax's user avatar
  • 173
2 votes
1 answer
535 views

Sitecore 9.2 Virtual User Authentication and SessionId Cookie [closed]

On the project I'm working on, we have chosen to use Sitecore 9.2 XM with Identity Server disabled. Where in the pipeline should I expect to see the ASP.NET_SessionId cookie get generated to be sent ...
Tony C Wang's user avatar
1 vote
0 answers
96 views

On Item Creation: Warning/Confirmation dialog for invalid Item Name

I want to create a Warning/Confirmation dialog when certain items do not pass our custom item name validation rules. The user can still override the warning dialog via OK/Cancel Buttons. I've tried ...
Adam Hess's user avatar
  • 354
2 votes
2 answers
218 views

Archiving processor does not archive

I've set up a timed processor that takes items of a particular type and archives them if they haven't been updated in two years. I have it logging the correct item that it finds, but the article does ...
Levi Wallach's user avatar
  • 1,085