handlers.unique_id_handler

class UniqueIdHandler(handlers.eventhandler.EventHandler):

Generates a unique ID for every fact sheet. Can be configured by subtype.

name = 'Generate Unique ID'
description = 'Generates a unique ID for every fact sheet. Can be configured by subtype.'
conditions = {'event_types': ['FactSheetCreatedEvent']}
supports_initial_sync = True
config_template = {'fs_types': ['ITComponent'], 'field': 'uniqueIdField'}
def handle(self, event, fs, **kwargs):

Called automatically whenever a matching event comes in via webhook.

def initial_sync_event(self, fs):