I have added Codeunit ISI Events to call the subscriber.
IsCustomerExist will first check if contact exists or not, if it doesnot exist then it will proceed further and create contact and function CreateCustomer will create new customer and select the default template from General ledger Setup table.