1

I need to programmatically list all the currently in progress bulk api jobs. I don't see any API methods available to do this.

The goal here is to be able to wait till there are no in progress bulk api jobs and then kick off a new one.

This is not a duplicate. I don't really care if I use APEX or the bulk api or what I use, but I need to be able to get a list of all jobs or ideally of all in progress jobs. Once I have the job ID I can get all the info I need. What I don't know how to do is get a list of all bulk api jobs.

  • This is not a duplicate. I don't really care if I use APEX or the bulk api or what I use, but I need to be able to get a list of all jobs or ideally of all in progress jobs. Once I have the job ID I can get all the info I need. What I don't know how to do is get a list of all bulk api jobs. – John Stein May 16 '17 at 15:01
  • Eric, thanks for the help. The issue is that the Bulk API (or any API that I have found) does not have a method to get a list of bulk jobs (like the list on the Bulk Data Load Jobs page in Setup). It has methods to create jobs, abort jobs, query for a specific job by ID. – John Stein May 16 '17 at 15:10
  • Which is why I marked it as duplicate, the answer is the same (currently) the object is not exposed. Added as an answer here so you can accept if you feel it is not a duplicate. – Eric May 16 '17 at 15:13
1

From Adrian's answer here:

The object you seek is AsyncApiJob, but it can't be queried. Vote for this Idea: Ability to query AsyncApiJob from Apex.

Not the answer you're looking for? Browse other questions tagged or ask your own question.