def METHOD_NAME(harness, contactIdList, referenceContacts):
    try:
        contactsToSave = GetContactsCount().run(harness).count
        resp = GetContactsWithOffsetAndLimit(0, contactsToSave).run(harness)
        for e in resp.entries:
            id = e["id"]
            referenceContacts[id] = e
            contactIdList.append(id)
            log.debug(f"Saved contact id: {id}")
    except TransactionError:
        return False
    else:
        return True