Dynamically add an object to the bulk query job for Simple_Salesforce.
I'm not sure how to pass a variable to sf.bulk."Object".query
.
I would like to be able to pass an object say "Account" to the definition and it does the bulk query sf.bulk.Account.query("SOQL...")
sf = Salesforce(username=sf_username, password=sf_password, security_token=sf_token)
def SOQL(table):
qryResult = sf.bulk.`table`.query('SELECT Id FROM ' + table)
SOQL("Account")
I would like python to translate this to sf.bulk.Account.query("SELECT Id FROM Account")