Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk2 delete function not working with records parameter #684

Open
michaelhollander opened this issue Sep 16, 2023 · 0 comments
Open

bulk2 delete function not working with records parameter #684

michaelhollander opened this issue Sep 16, 2023 · 0 comments

Comments

@michaelhollander
Copy link

To recreate:

records = [{"Id": "0062300000IdMo2AAF"},{"Id": "0062300000IdMo3AAF"}]

sf.bulk2.Contact.delete(records = records)

What I expect: the deletion to work as normal.

What actually happens: I get an error on line 646 of bulk2. The problem seems to be that although bulk2 allows you to pass in the records to delete using the records parameter, that param isn't actually used on on line 646

if operation in (Operation.delete, Operation.hard_delete):
            with open(csv_file, "r", encoding="utf-8") as bis:

The other operations don't appear to have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant