'Simple helper function to get the newly created inv_send row'

def send_rec(self, result):

    if (len(result['after']) > 0):
        new_inv_send = result['after'].records[0]
        return new_inv_send.inv_send
    return None
