I am using the Python Simple-Salesforce Library for bulk insert and updating records.
I want to create one method in which I pass the Sobject API name and then at run time have it insert/update records to that specific objects table in the Salesforce database.
Below are two examples of what I am literally looking to achieve.
Sobject_Name__c = 'Case' sf.bulk.Sobject_Name__c.insert(bulk_data, batch_size, use_serial)
Sobject_Name__c = 'Custom_Object__c' sf.bulk.Sobject_Name__c.insert(bulk_data, batch_size, use_serial)
Is there a way to dynamically insert/update objects at run time using the Simple-Salesforce Library?