Hi
I created several events in my project.
How can I register them to be used in Automations Trigger list in Automation Studio?
Hi Iurii. You can register your own events as automation triggers by implementing the IAutomationEventDefinition plugin type.
And within the plugin, you can register triggers against your events within the plugin's RegisterEvents method.
public class CustomEntityEvents : IAutomationEventDefinition { public string Name => "Custom Entity Events"; public string Description => "Custom Entity Automation Event Definitions"; public void Initialize() {} public void RegisterEvents(IAutomationEventController controller) { controller.RegisterEvent("CustomEntity", "BeforeCreate", typeof(CustomEntityBeforeCreateEventArgs), handler => customEntityApi.BeforeCreate += args => handler(args)); controller.RegisterEvent("CustomEntity", "AfterCreate", typeof(CustomEntityAfterCreateEventArgs), handler => customEntityApi.AfterCreate += args => handler(args)); } }