handlers.fact_sheet_deletion_mail_handler
Whenever somebody archives a fact sheet, inform the admin team (or whoever you like), so they can
double-check. It either sends an e-mail to the e-mail address configured in the global configuration
(Company level) of your instance, or it creates a to-do in the to-do fact specified in the configuration.
If you are unsure how to configure your instance, please contact Aronis support.
exceptions: List of e-mail addresses of users whose actions should not trigger a notification, e.g. admin users.
todo_fact_sheet: id of the fact sheet where the notification will be attached.
todo_recipient: e-mail address of the recipient of the to-do notification.
title: Title of the to-do, or subject of the notification e-mail.
body: Body of the to-do or the e-mail. Supported placeholders: $DISPLAY_NAME, $USER_EMAIL, $FS_URL, $COMMENT.
If todo_fact_sheet / todo_recipient are not set, the notification will be sent as e-mail.
Declare the exact fact-sheet data this handler needs, so the webhook event loop (process_event in workspace/views_module.py) can load a single lean FastFactSheet per event instead of the full fact sheet.
Return a dict:
{
"fields": [
Return None (the default) to signal "requirements cannot be declared statically" - e.g. handlers that exec/eval config-supplied code. The event loop then loads the full fact sheet for that event, so correctness is always preserved. This is a standalone hook (deliberately not tied to the initial_sync_* hooks, which are slated to migrate onto it later).
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
- 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