Questions tagged [events]

For questions related to the Sitecore Event system. This includes the Event Queue, event handling, custom events.

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

Sitecore multiple CD web databases publishing/indexing EventQueue database name

Say I have a single CM with 1x master db, 1x core db and 2x web dbs (2x publishing targets) for 2x CD servers in different regions. I can't call both web dbs "web" - one must be something ...
3
votes
0answers
92 views

How does Sitecore determine which EventQueue database to use for a given event and how to change it

Sitecore 8.2 I have a CM and 2 CDs like so: ___ CD1 (web1, core) CM (master, core, web1, web2) ____/ \___ CD2 (web2, core2) Note ...
2
votes
0answers
103 views

Accessing Database Items in a Timer

We are experiencing some problems when accessing items using a Timer which is not consistent for all items. We have the following code: var database =Sitecore.Configuration.Factory....
1
vote
0answers
183 views

Sitecore 9.1.1 remote events not executing on CM server

I am trying to get a remote event fired from CD server to CM server and then CM server to create the item required in Sitecore 9.1.1. I can see the event gets added to the database but it never gets ...
1
vote
0answers
105 views

How to programmatically refresh a Sitecore screen?

I have an Event firing on item:saved, that ends up modifying some fields on the same item being saved. This of course is not immediately reflected on the Sitecore interface, causing a misleading ...
1
vote
0answers
187 views

$name token not replaced when creating from branch template

Sitecore 9.02 - I have a branch template I've made to create a new page. The template it's based on has a Title field with a standard value set to $name to do the replacement. However, when I create ...
0
votes
0answers
35 views

How to get info about parent event

I've subscribed to item:deleted event for child item and added such code var load = $"item:load(id={parent.ID})"; Sitecore.Context.ClientPage.ClientResponse.Timer(load, 3); If I delete ...
0
votes
0answers
59 views

How to fetch selected version value in programming in Sitecore 9.1.1?

When I will click in the Sitecore client to change versions, I would like to be able to run some code. So, Is there any event when I will select any version number in the Sitecore client? I am sharing ...
0
votes
1answer
37 views

How to enable Synchronizing the Index in if(EventDisabler())?

I am adding data in event item:versionAdded and when adding new version then it is calling item:versionAdded event again. For solving this issue I am adding data under: using (new EventDisabler()) { --...
0
votes
0answers
31 views

Detect when Sitecore automatically clears a custom cache

I'm trying to trigger something in the event that Sitecore clears one of my custom caches (implementing Sitecore.Caching.CustomCache) when it gets full. I can monitor the cache size compared to its ...
0
votes
0answers
100 views

What are ALL the Events triggered when an item is edited?

I have the following code: using (new SecurityDisabler()) { using (new EditContext(itemToChange, false, false)) { itemToChange[field] = theValue; } } the third parameter of ...