handlers.sync_from_service_now

class SyncFromServiceNow(handlers.eventhandler.EventHandler):

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

SyncFromServiceNow(config, **kwargs)
name = 'Sync From ServiceNow'
description = 'Synchronizes ServiceNow Records to LeanIX.'
conditions = {'event_types': ['ServiceNowRecordUpdatedEvent']}
supports_initial_sync = True
config_template = {}
host
external_id
event_type
client
gr
mode
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_foreign_display_value(self, fs_type, field):
def get_id_from_reference_table(self, fs_type, field, name, table_field='name'):
@staticmethod
def condition_matches(condition, event, fs):
def update_attributes(self, event, fs):
def get_update_transactions(self, field, event, fs):
def get_gr_fields(self, table):
@staticmethod
def add_field(fields, foreign_field):
def delete_record(self, ext_id):
def get_servicenow_user_id(self, mail, table, mail_field, standard=False):
def get_external_id(self, fs):
def get_fs_types(self):