12 votes

How can I tell if event system code has been loaded?

The event system code loads when the Tridion Content Manager Service Host service loads, and you can see this in the Windows Event Viewer. As each event handler loads you will see the status showing ...
Paul Russell's user avatar
  • 1,090
12 votes
Accepted

Easiest way to update all components after schema update

What have you tried? If you're just starting your search then the docs references below are a great start. Both the TOM.NET and Core Service APIs are available but it shouldn't be about what's ...
Dylan .. Mark Saunders's user avatar
9 votes
Accepted

Overriding Publishing Queue

For #1 publishing priority is the way to go. Maybe changing the default priority to "low" will give you enough of an override to push things through quickly. Using publishing priorities in conjunction ...
Chris Morgan's user avatar
  • 7,327
9 votes
Accepted

Unable to capture Save event of returning components from Translation Manager

You can try the below events related to Workflow: 1.Event for Workflow process starts EventSystem.Subscribe<ProcessInstance, StartWorkflowEventArgs>(OnProcessInstanceStart, EventPhases....
Saurabh Gangwar's user avatar
9 votes

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

You would have to make CSS updates through a GUI extension besides using the new line (\n) in your exception message. In your event system exception, you will be using the new line like this: throw ...
Sabarish Senthilnathan's user avatar
8 votes

Is there a field change event I can subscribe to?

You could consider [[removed:OOTB]] Supported category use with the Tree View. The user would select from the top-down and the field populated with the final select. Of course, by supported I mean ...
Dylan .. Mark Saunders's user avatar
8 votes

Tridion Event System with specific User

Another option is to temporarily elevate permissions of the current user in the event handler: using (ElevatedPrivilegesScope scope = new ElevatedPrivilegesScope(nonAdminSession, Privileges.SysAdmin))...
AntonM's user avatar
  • 571
7 votes
Accepted

Ways and steps to debug custom event handler code if any

Have you googled, you must have found following http://yatb.mitza.net/2012/03/debugging-tridion-2011-event-system.html
Raj Kumar's user avatar
  • 5,867
7 votes

Overriding Publishing Queue

What you are requiring is mainly to use publish queue in a way its not meant to be used. For #1 you want to publish items before all others. That is the exact purpose of "high" priority. Problem is ...
Marko Milic's user avatar
  • 8,863
7 votes
Accepted

Creating an Item with the Tridion Event System

Use the StructureGroup constructor to get a new SG, something like this: StructureGroup newSg = new StructureGroup(session, parentSGTcmId); Here is a snippet from the API docs:
Nickoli Roussakov's user avatar
7 votes

Tridion Event System with specific User

I would not try to impersonate an admin user from the event system. It opens up all kinds of vulnerabilities that you probably don't want. Instead, I would create a separate service (e.g. a REST ...
Quirijn's user avatar
  • 6,767
7 votes

What is the difference between EventSystem.SubscribeAsync and EventSystem.Subscribe events in Tridion Event system?

The difference is that on an ASYNC (SubscribeAsync) event, your code will run without blocking the main event from happening, while on SYNC events (Subscribe) the main event will wait for your code to ...
Nuno Linhares's user avatar
  • 29.1k
7 votes

How to access Tridion Config Component in Event System

As Atila, mentioned using core service in event system is never recommended but instead TOM.NET and to get the component "configComponent" in event system you can take the reference of the below code. ...
Hem Kant's user avatar
  • 2,208
6 votes
Accepted

Appending TCM of newly created component to component title

In the transaction committed phase you would have to call the Save method on the component, which would create a new major version. Unfortunately, this is the only way to do it as far as I know.
Nickoli Roussakov's user avatar
6 votes
Accepted

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

Regarding the "Why are there two 'Rendering' states?", or more accurately "Why are there two Save events with State 'Rendering'?": you already more or less answered the question yourself -- the first ...
Rick Pannekoek's user avatar
6 votes

How to ForceFinish the Workflow Process by setting Approval Status as "Undefined"?

The Import/Export Service (as used by Content Porter) will set Session.ContextData so Event Handlers can detect that the Events are triggered by a Content Manager Import action. You could catch that ...
Dylan .. Mark Saunders's user avatar
6 votes

Updating approval status of a item | On Save | Event System

Approval status is currently a read only property in the API and the only way it can be changed is via a workflow process (other than what you've currently done with your event system, which is ...
David Forster's user avatar
6 votes
Accepted

Custom Event Handler when Saving Component not Firing

From looking at the code there are a few remarks which I will make, but looking at your description I'm not directly seeing reasons why it shouldn't work. If you only have a single CM server (not an ...
Bart Koopman's user avatar
  • 29.6k
6 votes

Can Workflow be used to restrict the publishing/editing of a Page and its Components on selected Publications?

If your difference is based on the user's role in certain Publications, I would first consider adjusting authorization in terms of rights, groups, and maybe permissions. Otherwise yes, you could have ...
Alvin Reyes's user avatar
  • 12.8k
6 votes

Unable to capture Save event of returning components from Translation Manager

Looks like you may be using the wrong event? I don't know which event it is neither, so what I'd probably do is write a small event system that triggers on every event and logs enough details for me ...
Nuno Linhares's user avatar
  • 29.1k
6 votes
Accepted

Reading Tridion Items During Event System Extension Initialization

Instantiating Session object in the constructor of ES doesn't work from version 8 and beyond. We had this issue when we did the upgrade from 2013 to 8.5. So what we did is moved it to all event ...
Marko Milic's user avatar
  • 8,863
5 votes
Accepted

Automate sitemap publishing

Well, this wouldn't be Tridion if there weren't 15 ways of doing it. My preferred approach for this - given that you already have the sitemap logic built into CM Templates - would be to use a Custom ...
Nuno Linhares's user avatar
  • 29.1k
5 votes
Accepted

User Performing Component Localize Activity

From the Component object, which in my case is object subject, access the following subject.Session.User
Chris Morgan's user avatar
  • 7,327
5 votes
Accepted

Error while publishing a component from Event System

For starters your subscribe to IdentifiableObject is a bit risky, since that will capture more than just the save event of a Component, it will trigger on a lot more items in the CM, like Pages, ...
Bart Koopman's user avatar
  • 29.6k
5 votes

SDL WEB 8 Save Component event couldn't be triggered

You do not say in your question that you have actually saved a component to test this. I'm going to assume that you have, but it's also possible that the server where you saved the component is not ...
Dominic Cronin's user avatar
5 votes

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

It looks like you are trying to save innerFields as Component content. But isn't componentFields actual content of Component? Also, please make notice that you are trying to do this in Event System. ...
Marko Milic's user avatar
  • 8,863
5 votes
Accepted

Set content in Multi-valued text field

You should use .Values property instead of .Value .Values property is always available if field is multi-value. You can have something like this: foreach (ItemField field in metadataFields) ...
Marko Milic's user avatar
  • 8,863
5 votes
Accepted

Handler for Component Save on Transaction Commited not working after upgrade

I think the problem lies in the fact that your event handler is asynchronous (and you're subscribing to the TransactionCommitted phase). A Save action normally happens on the dynamic version (v0) of ...
Rick Pannekoek's user avatar
5 votes
Accepted

How to show custom validation error message from Tridion Event Handler code in popup window instead of Message Center

I wrote a working example of that here: "Validating Content on Save, Part 1". Part 2 and 3 were published by Robert Curlette here: http://www.curlette.com/?p=913
Nuno Linhares's user avatar
  • 29.1k
5 votes

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

Assuming it's C# .NET, you can try using the Environment.NewLine property from the System namespace. NewLine actually equals \r\n. String.Format("NewLine: {0} first line{0} second line{0} third ...
Saurabh Gangwar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible