Skip to content

Conversation

@ari-luokkala
Copy link

With this change it is possible to upload binary data with post, e.g. binary file attachments.
It is up to consumer to generate the binary content and then post it with compatible Content-Type, e.g. ZIP/CSV.

E.g.
job = bulk.create_insert_job("Account", contentType='ZIP_CSV')
binary_data = open('request.zip', 'rb').read()
batch = bulk.post_batch(job, binary _data)

Reference:
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/binary_intro.htm

@NikitaKothari NikitaKothari changed the base branch from master to main August 18, 2020 21:57
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

Successfully merging this pull request may close these issues.

1 participant