python-salesforce-api icon indicating copy to clipboard operation
python-salesforce-api copied to clipboard

bulk update documentation

Open nicolaspanel opened this issue 4 years ago • 1 comments

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

nicolaspanel avatar Sep 11 '20 12:09 nicolaspanel

Hello,

This is correct! Thank you! Will adjust!

felixlindstrom avatar Feb 23 '21 11:02 felixlindstrom