handlers.subscription_autocomplete_handler

class SubscriptionAutocompleteHandler(handlers.eventhandler.EventHandler):

Whenever somebody adds a "contact" subscription to a fact sheet, automatically complete the "manager" subscriptions based on the organizational model.
Requires either an active EntraID connection or an Excel export of your organization model. Please contact Aronis support for setup details.

name = 'Subscription Autocomplete'
description = 'Auto-complete manager subscriptions based on the digital HR org model.'
conditions = {'event_types': ['SubscriptionCreatedEvent']}
config_template = {'subscription_type': 'RESPONSIBLE', 'contact_role': 'IT Owner', 'manager_role': 'IT Manager'}
def handle(self, event, fact_sheet, **kwargs):

Called automatically whenever an event comes in via webhook.