Skip to main content
added 298 characters in body
Source Link

I have seen examples of how to perform a bulk query on a standard object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

Update: I have updated the simple-salesforce package to the latest edition 1.12.2. Now the query does not return blank but instead returns:

SalesforceGeneralError: Error Code Failed. Response content: InvalidBatch : Failed to process query: MALFORMED_QUERY: unexpected token: Date__c

I have seen examples of how to perform a bulk query on a standard object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

I have seen examples of how to perform a bulk query on a standard object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

Update: I have updated the simple-salesforce package to the latest edition 1.12.2. Now the query does not return blank but instead returns:

SalesforceGeneralError: Error Code Failed. Response content: InvalidBatch : Failed to process query: MALFORMED_QUERY: unexpected token: Date__c
added 2 characters in body
Source Link

I have seen examples of how to perform a bulk query on a customstandard object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

I have seen examples of how to perform a bulk query on a custom object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

I have seen examples of how to perform a bulk query on a standard object like this:

sf.bulk.Opportunity.query(
    "SELECT Id, Account.Name, Name, RecordType.Name, Type WHERE Id = 12345")

I have successfully completed queries like this on standard objects. But what I'm looking to do is query a custom object. I'm getting empty responses when I attempt this:

sf.bulk.Custom__c.query(
        "Date__c, ID__c, Transactions__c, Volume__c FROM Custom__c"))

Thanks in advance for any assistance

edited title
Link
identigral
  • 7.8k
  • 34
  • 33
  • 45

How do I simple-salesforce: perform a bulk query on a custom object

Source Link
Loading