Questions tagged [event-system]

The event system allows one or more .NET classes to subscribe to and act upon Publishing, BluePrint or Data Modification events.

Filter by
Sorted by
Tagged with
6
votes
2answers
99 views

Using the Event System to log deletions

I am having a problem logging deletions for pages when a structure group is deleted. The structure group deletion is logged but the pages in the structure group are not logged when the structure group ...
6
votes
2answers
178 views

Subscribe on the EventSystem for translation is finished event?

We are working with WorldServer and I was wondering if an event is thrown when a Translation comes back from WorldServer in the status Translated? If one ore more translated components in a job is of ...
6
votes
2answers
71 views

Appending TCM of newly created component to component title

I'm trying to write an event that will basically append the TCM value to the end of the component name this-is-my-componentname-1235 While for existing components this is easy enough during '...
6
votes
1answer
94 views

Order in which resolved- and processed items are populated in PublishTransaction save event

I am working on the following event system: EventSystem.Subscribe<PublishTransaction, SaveEventArgs>(MyEventHandler, EventPhases.Initiated); void MyEventHandler(PublishTransaction ...
6
votes
1answer
30 views

Is there any reason to have the Legacy Event adapter installed if you don't have a legacy events system?

On more than one occasion, I have come across Tridion systems that have the Legacy Event adapter installed/configured, even though they have no legacy events system. I'm fairly convinced that this is ...
6
votes
2answers
117 views

Event code error - only in Template Builder

Firstly, this is an 8.5 instance, upgraded from 2013, upgraded from 2011. We have Audience Manager installed (and working well) and outbound email. I have a set of custom events that subscribe (when ...
6
votes
3answers
966 views

Event System PublishEventArgs page subscribe is not being triggered

In my 2011 Event System, I'm subscribing to two events: EventSystem.Subscribe<Component, CheckInEventArgs>(OnComponentCheckedInPost, EventPhases.TransactionCommitted); EventSystem....
6
votes
1answer
135 views

User.GroupMemberships does not return groups mapped through LDAP

I wrote an event system module which needs to find out if the current user has access to a certain folder. It does this by examining the GroupMemberships of the user and comparing those to the ACE (...
6
votes
1answer
131 views

How to get the Publish & Republish state explicitly of an item on PublishTransaction Event at Committed phase?

I am performing some logic after successful publishing of each page on Live target and hence I have subscribed to the following event: EventSystem.SubscribeAsync<PublishTransaction, ...
5
votes
2answers
992 views

How to get the user of a Tridion Publish Event?

I did a small publish event listener using the following code: [TcmExtension("TridionPPQEventSystem")] public class PPQEventHandler : TcmExtension { public PPQEventHandler() { ...
5
votes
2answers
141 views

Event system - capture copy - paste event for keyword

I have a requirement in which I need to check: if keyword is created with copy-paste then I need to remove the related keywords from the destination (new) keyword and if keyword is moved using ...
5
votes
3answers
234 views

Unable to save TBB's

I am using Tridion 2011, Created one event system dll Deployed it on CMS server Registered it in the config Restarted SDL Tridion Content Manager COM+ package the Tridion Content Manager Publisher ...
5
votes
2answers
177 views

Why doesn't my event system execute?

I have created an events system assembly and registered it in the configuration file. I have implemented and subscribed a handler for Component Save Initiated. My events class is public (see What ...
5
votes
2answers
70 views

Ignore event system trigger when removing older versions

When you remove an older version of a component from its history in Tridion, it seems it will trigger the event system's OnComponentDeletePost method. We have a situation where removing components of ...
5
votes
2answers
134 views

TDD for Event system

We are planning to perform Test Driven Development for Event System. Is there any framework or methodology that allows Test Driven Development?
5
votes
3answers
176 views

How to access the preview url of Image (Created on SDL Media Manager) from Event System Code?

I have implemented the ECL connector for SDL media manager. Components are coming properly on the CMS end. On component save I have implemented an event system code for the ecl component which is ...
5
votes
1answer
104 views

Handler for Component Save on Transaction Commited not working after upgrade

I have a piece of Event System code which used to work fine on 2013 SP1, but when upgraded to Web 8.5 throws the following error: The item tcm:X-Y-16-v0 does not exist. Event Viewer: The original ...
5
votes
2answers
292 views

Get publication ID of publication from where page is getting published

I need to find publication ID of publication from where page is getting saved through event system page save event. I tried to get publication ID through owning/context publication property but not ...
5
votes
2answers
119 views

Performance Counter for Tridion 2011

I recently came across an extension called Performance Counter for Tridion here There it mentions that it shouldn't be used in Prod environment as it runs on event system which might hit the ...
5
votes
3answers
223 views

Event doesn't fire when i use ICoreService.Save method

I have an Event handler on Component's save event on which I've subscribed as follows: EventSystem.Subscribe<Component, SaveEventArgs>(OnComponentPreSave, EventPhases.Initiated); When I change ...
5
votes
1answer
157 views

Changes to component not saved after modifying the content through event handler

Here is what I am doing in my method on component save. I am getting the component content and fetching all the "a" tags modifying it and replacing it. The content is modified but getting the ...
5
votes
1answer
104 views

FakePublish? Suggestions for workaround: SetPublishedTo with CoreService

In addition to this old question: SetPublishedTo with CoreService I have another question for the new Tridion 2011 EventSystem I'm updating our EventSystem from the old TOM API to CoreServices... ...
5
votes
2answers
590 views

How to fail publishing of a page in Tridion Event System?

[TcmExtension("PageEventHandlerExtension")] public class PageEventHandler : TcmExtension { public PageEventHandler() { Subscribe(); } public void Subscribe() { ...
5
votes
1answer
489 views

Error occurs when creating multimedia component in Event System

I'm trying to create Multimedia Component in Event System, but it fails when saving new Multimedia Component. My Event System program does following operation. When Multimedia Component is saved, ...
5
votes
1answer
55 views

SaveEvent of User object is getting invoked when publishing a Component or Page

I am trying to perform certain action on user save event (Transaction committed phase) using tridion event system. This is working fine. I am surprised to see that the same user save event is getting ...
5
votes
1answer
178 views

Using impersonation in VB.Net 2009 Event System

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-...
4
votes
5answers
512 views

How to Update Event System DLL?

In Tridion 2013 I found updating an event system DLL is a tedious task. Each time it fails. Is there any Utility available to do this job easily? Edit I am stopping COM+, TcmPublisher, ...
4
votes
5answers
216 views

Can we write event system to automate the publishing of sitemap.xml?

I need to write an event system in Tridion so that if any page modified/Created in publication and publish the same then the sitemap file placed in that publication get published automatically at the ...
4
votes
3answers
104 views

GUI not rendering <br> and new line showing error messages

Recently I received client requirements for validation Component fields using Event System. I am facing issue in message with multiple lines. throw new Exception(“Experience must <br> be ...
4
votes
2answers
525 views

Easiest way to update all components after schema update

Can someone tell me the easiest way to automatically update all components after some field in schema is updated? I am thinking of something like event system instead of Core Service tool.
4
votes
2answers
187 views

Event system not working on Tridion 2011 sp1

I am trying to implement a very basic event system example in tridion 2011 sp1. I have followed below steps. Created a class library project. Here is my code [TcmExtension("TridionEventSystemTest")] ...
4
votes
2answers
146 views

How to update Component link -> embedded Component field value using TOM.NET Event System

I would like to update an embedded Component field value when I check in my Page using TOM.NET Event System but the Component field value update is not happening. I am not sure what am doing wrong ...
4
votes
1answer
132 views

Multiple file operations in Tridion limited by six

In Tridion multiple operations involving more than six files are failing. Some sample operations are shown below. Delete more than 6 users Delete more than '6' TBB Move more than 6 building block ...
4
votes
2answers
7k views

The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025)

I am using SDL Tridion 2013 SP1. I am getting this error from the Event System. This custom Event System is capturing all CME activity and storing it into a separate SQL database for logging purposes. ...
4
votes
1answer
198 views

Is there a way to pass information between events?

Is there a way to send object or even string or bool values from one event to another event in event system of Tridion 2011? Below is my scenario. I have 2 events OnCompSave in Initiated phase and ...
4
votes
3answers
168 views

Tridion 2009 - Using the event system to end the first Manual step in workflow

I'm trying to use the event system to auto finish the first step in workflow on initial creation. My code is fine until oActivity.FinishActivity("Message") - the log is saying I need to specify a ...
4
votes
1answer
355 views

Custom Event Handler when Saving Component not Firing

I'm attempting to register a custom event handler to SDL Web 8.5. [TcmExtension("ResponsiveTableEvents")] public class ConditionalEvents : TcmExtension { private const string ...
4
votes
1answer
555 views

How to catch a Publish/UnPublish event in an SDL Tridion 2011 event system?

In Tridion event system, I have written the code to fire an OnPagePublishPost event. This task has been done successfully using the subscribe method i.e subscribing to the event. But as my event ...
4
votes
3answers
165 views

Tridion impersonation user issue on Event Trigger

For Tridion 2009 workflow we are using Event Triggers to listen for the event "activity instance is started". Within the code we have a method that gets triggered when this event is triggered. The ...
4
votes
1answer
157 views

Set content in Multi-valued text field

I have a field called customerType in the Metadata of a Schema. It is a multi-valued text field. I would like to update the Component using Event System to set the Metadata of this field. So far I am ...
4
votes
3answers
106 views

Event System Tridion 2013 SP1 - Cannot find connectionstring

I have an Event System which is using Entity Framework. I now get the error that the connection string with name 'X' cannot be found in the application config file. In which config file do I have to ...
4
votes
1answer
61 views

Trouble retrieving Page values in save event

I am trying to do some validation on saving a page. Part of this involves checking the page template. When I try to read it, however, I get the default value for the page template. This is even after ...
4
votes
1answer
227 views

Event System - Log4Net only writes events when WaitingForPublish (PublishTransaction) Event Occurs

Good Morning. I was been working in a "Workflow/Event System" Component few month ago and it was working as it should. this week i deployed everything to a new box and I start getting an estrange ...
4
votes
3answers
325 views

How can we stop Unpublish in event system?

How can we stop Un-Publish in event system ? My Requirement is to stop unpublishing in Event System and put the item into bundle X and start a WorkFlow Y on this bundle . I am able to achieve ...
4
votes
4answers
235 views

Event System - stopping an event avalanche

I am trying to write an event so that when a component is saved, some of its fields are copied in the localized versions of the component. My algorithm is as follows: I first find the root component (...
4
votes
1answer
196 views

How can I get the filesize in OnComponentSavePre?

I'm using Tridion 5.3, and I'm trying to check the Multimedia filesize in the OnComponentSavePre event (using a C# event handler) using Component.Multimedia.FileSize I'm sure that I have done this ...
4
votes
2answers
63 views

How to create a Localizable Message for the Tridion Message Center

I am afraid I am missing something, but I can't find how to create a custom Localizable Message in Tridion 2013 SP1. In an Event System I want to throw an Exception like the following: throw new ...
4
votes
2answers
91 views

PublishTransaction save event not recording all publish states

We are implementing an Event System to record the publish transaction information to a log file and a custom database. When a single page is published all the states it goes through are being captured ...
4
votes
2answers
153 views

How to track the changes made on Page?

I have a requirement where I need to track the changes made on page every time it is published on PROD. I am planning to use PublishInfo of the page and get the timestamp of second last published ...
4
votes
2answers
112 views

PublishTransaction save event triggered multiple times

I have a custom event system handler that sends an email when a publish transaction fails. The event is registered like this: this.EventSystem.Subscribe<PublishTransaction, SaveEventArgs> ...