class Multiwoven::Integrations::Destination::Hubspot::Client
def process_records(records, stream)
def process_records(records, stream) write_success = 0 write_failure = 0 properties = stream.json_schema.with_indifferent_access[:properties] records.each do |record_object| record = extract_data(record_object, properties) send_data_to_hubspot(stream.name, record) write_success += 1 rescue StandardError => e handle_exception(e, { context: "HUBSPOT:CRM:WRITE:EXCEPTION", type: "error", sync_id: @sync_config.sync_id, sync_run_id: @sync_config.sync_run_id }) write_failure += 1 end tracking_message(write_success, write_failure) end