handlers.servicenow2_handler

class Servicenow2Handler(handlers.eventhandler.EventHandler):

Fully configurable single-direction LeanIX > ServiceNow Connector.
Please contact Aronis support for setup assistance.

Servicenow2Handler(config, **kwargs)
name = 'ServiceNow Connector'
description = 'Synchronizes LeanIX Fact Sheets to ServiceNow.'
conditions = {'event_types': ['FactSheetUpdatedEvent', 'FactSheetArchivedEvent'], 'fs_types': ['Application']}
supports_initial_sync = True
config_template = {'config': 'See LeanIX ServiceNow Connector -> Advanced Mode.'}
host
external_id
event_type
client
gr
def handle(self, event, fs, **kwargs):

Called automatically whenever a relevant event comes in via webhook.

def get_sync_descriptor(self, fs_type):
def get_table_name(self, fs_type):
def get_mappings(self, fs_type):
def get_mapping(self, fs_type, field):
def get_foreign_field_name(self, fs_type, field):
def get_subscription_reference_table(self, fs_type, field):
def get_subscription_reference_field(self, fs_type, field):
def get_foreign_value(self, fs_type, field):
def get_id_from_reference_table(self, fs_type, field, name, table_field='name'):
def update_attributes(self, fs):
def create_record(self, fs):
def get_update_transactions(self, field, fs):
def delete_record(self, ext_id):
def get_servicenow_user_id(self, mail, table, mail_field, standard=False):
def get_external_id(self, fs):