code: def capture_insert_from_model(cls, table_name, record_id, *, exclude_fields=()):
          
          exclude_cols = ()
          if exclude_fields:
              model_cls = get_connected_model_for_table_name(table_name)
              exclude_cols = cls._fieldnames_to_colnames(model_cls, exclude_fields)
  
          raw_query = sql.SQL("""
              SELECT {schema}.hc_capture_insert_from_row(
                hstore({schema}.{table_name}.*),
                %(table_name)s,
                ARRAY[{exclude_cols}]::text[]  -- cast to type expected by stored procedure
              ) AS id
              FROM {schema}.{table_name}
              WHERE id = %(record_id)s
          """).format(
              schema=sql.Identifier(settings.HEROKU_CONNECT_SCHEMA),
              table_name=sql.Identifier(table_name),
              exclude_cols=sql.SQL(', ').join(sql.Identifier(col) for col in exclude_cols),
          )
          params = {'record_id': record_id, 'table_name': table_name}
          result_qs = TriggerLog.objects.raw(raw_query, params)
          return list(result_qs)
docs: Create a fresh insert record from the current model state in the database.
  
          For read-write connected models, this will lead to the attempted creation of a
          corresponding object in Salesforce.
  
          Args:
              table_name (str): The name of the table backing the connected model (without schema)
              record_id (int): The primary id of the connected model
              exclude_fields (Iterable[str]): The names of fields that will not be included in the
                  write record
  
          Returns:
              A list of the created TriggerLog entries (usually one).
  
          Raises:
              LookupError: if ``table_name`` does not belong to a connected model