Does anyone know how to use the bulk API to add accounts as campaign members? I enabled "Accounts as Campaign Members" and my Campaign Member record now has the AccountId field. I'm able to manually add Accounts on the UI, but when I try uploading Campaign Members using the Bulk Insert API, I get the error "InvalidBatch : InvalidBatch : Field name not found : AccountId"
CampaignMember | Object Reference for Salesforce and Lightning Platform | Salesforce Developers
OK I solved the issue. I observed that the default value of API_version inside the salesforce_bulk.py class is defined as 40.0
So I passed the API version '50.0' while instantiating the SalesforceBulk class
SF_BULK_API_VERSION = '50.0'
bulk = SalesforceBulk(username=sf_user,
password=sf_password,
security_token=sf_security_token,
sandbox=True,
host=dev_host_001,
API_version=SF_BULK_API_VERSION)