python-salesforce-api
python-salesforce-api copied to clipboard
bulk update documentation
Hi @felixlindstrom
First thank you for sharing this, saved me a lot of time !
It seems there is an issue in https://github.com/felixlindstrom/python-salesforce-api#bulk-update documentation since the update key
is not specified.
IMO it should be something like
client.bulk.update('Contact', [
{'LastName': 'Lindstrom', 'Email': '[email protected]', 'MyId__c': 1},
{'LastName': 'Something else', 'Email': '[email protected]', 'MyId__c': 2}
], external_id_field='MyId__c')
or
client.bulk.update('Contact', ['0031l000007rU5rAAE', '0031l000007rU5sAAE'], [
{'LastName': 'Lindstrom', 'Email': '[email protected]'},
{'LastName': 'Something else', 'Email': '[email protected]'}
])
Could you please take a look ? Best regards
Hello,
This is correct! Thank you! Will adjust!