handlers.subscription_deletion_mail_handler
Whenever somebody removes a subscription from a fact sheet, inform the admin team (or whoever you like), so they can double-check. The mail is sent to the e-mail address configured in the global configuration (Company level) of your instance. If you are unsure how to configure your instance, please contact Aronis support.
roles: List of relevant roles that you want to monitor.
exceptions List of e-mail addresses of users whose actions should not trigger a notification, e.g. admin users.
description =
'Sends a notification to one or more mail addresses when somebody deletes a subscription.'
config_template =
{'roles': ['System Owner', 'Manager L1', 'RESPONSIBLE', 'ACCOUNTABLE'], 'exceptions': ['admin1@domain.com', 'admin2@domain.com']}
def
handle(self, event, fact_sheet, **kwargs):
Called automatically whenever a FactSheetCreated or FactSheetUpdated event comes in via webhook.
Inherited Members
- handlers.eventhandler.EventHandler
- EventHandler
- supports_initial_sync
- get_trigger
- get_event_types
- get_fs_types
- get
- all
- lx_client
- data_requirements
- initial_sync_event
- update_with_uniqueness_check
- facet_matches
- is_tag_key
- SUBSCRIPTION_TYPES
- parse_subscription_key
- get_mapped_subscriptions
- get_notification_users
- get_send_email_for_users
- get_email_callback
- get_due_date