You can register your own triggers and actions. They should be registered in custom Sitefinity modules as shown in the sample below. For more information, see Custom modules.
To register a trigger, you need to implement IServiceHookTriggerProvider interface. You also need to create a new trigger class that inherits from ServiceHookTriggerSettingsBase.
When defining trigger settings, you need to add this data in constructor:
Also, you can add additional event filter in IsMatch function.
To register custom actions, you must implement IServiceHookActionProvider interface. In addition, you need to create new action setting class inherited from IServiceHookActionSettings.
When defining action setting you need to:
You can also define properties, which can be used in the UI when executing actions. For more information, see Widget designers.
When you want to encrypt field to hide sensitive data, you can use Sitefinity.Configuration.SecretData attribute
Finally, you must implement ExecuteActionAsync method as shown in the sample below.
This sample code creates a contact in HubSpot when a user logs in to Sitefinity.
You can customize Admin App fields by overriding them. Learn more about custom fields in GitHub.
Sign up for our free beginner training. Boost your credentials through advanced courses and certification. Register for Sitefinity training and certification.
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important