I'm trying to do a staggered query using the Bulk API from a RoR app since the filter (WHERE App_Id__c IN :listOfIds) I'm using is over 4000 chars. The list of IDs I'm filtering on is quite long, so I'd love to slice it into smaller sections and make n queries to the Bulk API, building up an array of results.
I tried the below but it seems like the request never goes through:
private_class_method def self.salesforce_apps(ids)
allsalesforceapps = []
ids.each_slice(200) do |customer_ids_batch|
allsalesforceapps << Salesforce.bulk_client.query("App__c", "SELECT Id FROM App__c WHERE App_Id__c IN ('#{customer_ids_batch}')")
end
allsalesforceapps
end
Any ideas?