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
1
vote
0answers
20 views

How to throw exception and abort to publish an item in event handler

I want to stop publishing a structure groups for certain user groups. I'm able to catch the structure group and filter per the desired groups, but when I throw the exception, nothing happens and the ...
1
vote
4answers
55 views

Event Handler get the user who throws the event

I need to avoid certain group to publish a structure group but I don't know how to get that user to check if belongs to a certaing group. This is the code I have: public ...
0
votes
1answer
48 views

How to disable Page from publishing in certain Publication using Event System?

We want to disable Page from publishing in certain Publication when include child Publications is marked true using the Event System.
1
vote
0answers
29 views

tridion event system for linked schema

I would like to write an event system to trigger on component save and update the external URL (embedded link) to https://www.xxxx.com. Please suggest the best approach to find the URL field of ...
0
votes
0answers
38 views

SDL Site 9.1 Event System assembly reference issue

There are sample provided by sdl to capture translation job from event system. But the reference issue with ITranslationJob Interface. Though we added all dll refference and included as mentioned in ...
0
votes
0answers
37 views

Tridion Publish Event Modify Component Value

I have configured Tridion event handler for publishing action. In this process I try to modify a component value and then save (check-in) it before it will be published have this content after publish....
1
vote
1answer
384 views

How safe is using ElevatedPrivilegesScope to access a Component Tridion, if it is not accessible by the user

I have a configuration Component in the Gloabal/Shared publication, We have Event System code which reads this Configuration Component using current component session, but in case if the current user ...
1
vote
3answers
208 views

How to access Tridion Config Component in Event System

I have created an Event handler on Component save which checks the Image Size for Multimedia Components on saving. I want to read the allowed Maximum size from the Tridion configuration Component, I ...
0
votes
3answers
68 views

How to get images on Publishing event

We have a requirement where we want to abort publishing and throw an alert if page has a image which is more than 200 KB. I am trying below event system code : [TcmExtension("...
7
votes
2answers
87 views

Reading Tridion Items During Event System Extension Initialization

I am trying to read a component when an event system extension is first initialized in an 8.5 instance. So in my event system extension's constructor, I try to get the component from the Administrator ...
4
votes
3answers
108 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 ...
0
votes
1answer
49 views

Batch publishing with childs in Event Handler

I'm trying to control in which Publications an item is published when I publish in all child Publications. What I developed is: EventSystem.Subscribe<RepositoryLocalObject, PublishEventArgs>(...
1
vote
0answers
25 views

Tridion Delete notification message is not firing in events system

I want to display a notification message in tridion after deleting a component, but no message is coming after deleting component. My Code:- public void Subscribe() { EventSystem....
3
votes
2answers
80 views

After deploying the custom Event System code Content Porter is not able to connect with CMS server

After deploying the custom Event System code, Content Porter is not able to connect with CMS server. Event System Code is working properly. In my code I have used AWS reference dll (AWSSDK.Core, ...
2
votes
1answer
46 views

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

I would like to show a custom validation error message from the Event Handler code in a popup window. My requirement is while saving binary Component; if the binary filename contains any special ...
9
votes
1answer
73 views

Broadcasting Notification to message center not working

I am using SDL Web 8.5 and I want to broadcast a warning message to the user upon saving a component. I am using the event system to trigger the message on save. However, after setting everything up, ...
1
vote
1answer
64 views

Event System add-on in Sites 9.1 'Pending Activation"

I have created an add-on for the Tridion Sites 9.1 Event System. In the .zip Add-on package I have placed my compiled DLL and the manifest.json file. Below is my manifest.json. After selecting '...
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 ...
2
votes
1answer
100 views

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

What is the difference between EventSystem.SubscribeAsync and EventSystem.Subscribe events in Tridion Event system? When we subscribed the events in EventSystem.SubscribeAsync and EventSystem....
4
votes
0answers
40 views

Differentiating Original and “Publish in all child” transactions in ES

Is there any way where I can differentiate Original transactions and the ones which are result of "Publish in all child publications" in Event System using TOM.NET? I need this because I need to work ...
7
votes
3answers
97 views

Unable to capture Save event of returning components from Translation Manager

I have a need to bypass component workflow on the translated content. To achieve this i have planned to subscribe Save event at TransactionCommitted phase and then force finish the workflow activity. ...
2
votes
3answers
96 views

PublishTransaction event does not publish the component with user id instead it is publishing with system user account

When a component is published successfully, we want a related component to be auto published (am not going into the details of why we need this). We are trying to implement this through event system. ...
3
votes
3answers
124 views

Tridion Event System with specific User

I would like to create a Component with a specific User, (e.g admin user) on delete event. If any user deletes a specific Page or Component, the delete event should create a Component in a particular ...
1
vote
1answer
33 views

Error when doing request from Event Handler

In our SDL Web 8.5 environment we have an Event Handler, which does a POST request to a .NET Core API (hosted on another server). The request results in the following error: One or more errors ...
3
votes
1answer
63 views

Event doesn't fire when I use save component using workflow (SDL 8.5)

I have a schema with a workflow assigned. I need that if the Performer belongs to a certain group it finishes the process and bypasses the workflow (ending with the Approval Status we have as the ...
3
votes
2answers
65 views

Creating an Item with the Tridion Event System

I would like to make a new Structure Group when we create a new Folder. In older versions of Tridion we might do this with the TDSE object. I'm on Tridion Sites 9 and wanted to use something ...
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 ...
0
votes
1answer
58 views

Tridion Event on Component Save

We are creating Component for addresses, and on save of the Component would like to trigger a Save event and get the latitude and longitude values of the address and populate Latitude and Longitude ...
3
votes
1answer
43 views

TranslationJobInstantiated event in Tridion Web 8.5

I cannot seem to find the TranslationJobInstantiated event in the new Tridion.TranslationManager.V2.EventSystem.Events namespace. We were using the deprecated plugin system to automatically set ...
3
votes
1answer
70 views

Can't connect to external SQL Server DB

I am using SDL Web 8.5 in an AWS instance and, as part of some event system code, am trying to connect to a non-Tridion DB on the same DB server. The connection string is: Integrated Security=true;...
6
votes
2answers
124 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 ...
0
votes
1answer
109 views

How to publish a binary file using Event System when a Component start publishing

We are using SDL Web 8.5 and DXA 2.0 Java. Our requirement is to publish an Excel file to a specific folder once a specific Component starts publishing. How can we achieve this using Event System?
0
votes
1answer
59 views

Is it possible to publish page with anothe Page Template using Core Service or something similar?

I need to do some new functionality which allow users to select some feature in Page Metadata and with this check selected the Page should be published with another Page Template (this Page Template ...
3
votes
1answer
43 views

Security exception when reading WebDavUrl

In a Web 8.5 system, event system is reading a Component by WebDavUrl. It then tries to access the Component's WebDavUrl property and it fails with security exception in the Event Log. This only ...
3
votes
1answer
54 views

Event System in CME - Detect when a Component is linked to another

Is it possible to attach an event when a Component is linked to another in the CMS GUI? Which is the event?
4
votes
1answer
80 views

Translation Manager .NET API v2 - Session use in event code causes EventSystem.DeliverEvent exception

So I'm playing around with the TM .NET API v2 within some event code. I'm interested in adjusting the Xml sent from TM for translation so am subscribing to IItemSendEventArgs. EventSystem.Subscribe&...
2
votes
1answer
41 views

From where is it better to stop publish in Web 8 or Web 8.5

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are: Use event system Probably something like: ...
3
votes
2answers
67 views

Manipulate Component.ApplicableActions through event system to allow editing

If you have a folder containing components that a user has only Read permission on, is it possible to roll your own authorisation logic in the event system so that you could allow a user to actually ...
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
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 ...
3
votes
1answer
71 views

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

I have a requirement where we want to restrict the editing or publishing of a Page and its Components for certain Publications. However, we don't want this restriction to be applied to all ...
7
votes
4answers
100 views

Tridion CM Usage reporting

My client would like to pull together some metrics regarding our Tridion CM usage. We're interested in the following information. Create – New (Images, Pages, Components) Edit/Update (Images, ...
1
vote
1answer
110 views

How to get All Root Pages from Event System Code

We need to implement Short URL Functionality for one of the marketing Campaign. For example www.domainurl/x/y/z should go to www.domainurl/a We have a redirect Page and Component through which ...
3
votes
1answer
84 views

SDL Web 8.5 - How to find a User created date and privilege modified date

I have business requirement to create a Tridion Active User List report with name, privilege, description, created date and privilege modified date. I checked the TRUSTEES table and not find the user ...
0
votes
1answer
82 views

SDL Web 8.5 - Systematically unlock content (Component/Page/Bundle) locked by disabled user

We have business requirement to implement a feature where the system can unlock content locked by a disabled user: user who has left the organization once their ID gets deactivated from Tridion. (...
4
votes
2answers
147 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 ...
2
votes
2answers
89 views

Event System to disable transaction save

We have a requirement where we need to disable creating transactions in some Publications. We cannot remove these publications from Publication Target, because we need them, but we would like to do it ...
1
vote
3answers
55 views

Is RSS feed a feasible & good option to inform users about the changes made on Parent level in Blueprint?

I am sure everyone here might be handling this requirement in different ways & hence thought to get an optimised solution. Today many of our country users are left outdated with the changes made ...
2
votes
1answer
104 views

Using Tridion Core Services how to obtain Members of group in which Group memberships obtained from an external (LDAP) directory?

My Idea is to get the list of users for particular project in Tridion Publication using Core Services. I tried to get it from GroupMembershipData. But unfortunatly it is not including Group ...
2
votes
1answer
55 views

Event system: GetInstanceDataEventArgs not firing

I'm trying to set a date-field of a new Component automatically when created, using the event system. The approach is to set the field in the GetInstanceDataEvent public Events() { ...

1
2 3 4 5