I am using simple_salesforce
to update records in Salesforce
I would like to keep a "log" of which records were successfully updated and any error messages that were received. Ex: The response for a successful update is "204". How do I save that response to a variable?
Once I have that value in a variable I know how to store it in a log table. Thanks so much for your help
sf.table.update(uniqueID,{fieldname: new_AccountID})
Hope I got the question correct because the answer is - just assign the result to a variable
Although if you're dealing with multiple records you have to consider using
bulk api
and then the
update_results
looks like that