Closed IanQS closed 6 years ago
Hey @IanQS!
You can do it similarly to the example create_insert_job
at the bottom of the README. The following should work:
# Create the job
newJob = bulk.create_delete_job("Custom_Obj__c")
# Create a CSV representation of the data
objs = [dict(Id=sf_id) for sf_id in listIds]
csv_iter = CsvDictsAdapter(iter(accounts))
# Post the request and close it
newBatch = bulk.post_batch(newJob, csv_iter)
bulk.wait_for_batch(newJob, newBatch)
bulk.close_job(newJob)
# Notify the user
print("Successfully deleted all records that were uploaded")
My workflow is as follows:
1) upload data (through this package) 2) process on salesforces' end 3) get back results.
I'm getting the ID of the created objects from
then iterating through that and appending to a list(listIds). Later, when I try to do step 3
I get the error of
but as far as I know it is only IDs? Granted it's a list of IDs that I ran iter on but still.