You need to sign in to do that
Don't have an account?
Xav
How to load Bulk Api Jobs using SOQL
Hi,
I am trying to build a custom page, that display "Bulk API Jobs" in a data grid. I am using the following statement :
List<AsyncApexJob> jobs = [SELECT Id FROM AsyncApexJob];
but it does not return anything. And when i go the page "https://xxxx.salesforce.com/750?setupid=AsyncApiJobStatus" i see my job in status "Open".
Is it possible to do this kind of query on Bulk Jobs ? If not, is there a way to embeded the "Bulk Jobs List" inside a custom apex page ?
Xavier
you can redirect to the "bulk data load jobs page" usign pagereference object.
Visit this example for more on pagererence, Pagereference example
Thanks,
Hi,
i know but that is not what i m looking for.
Xavier
I have done something similar in past and it works!. AsyncApexJob is queryable
Well I just did a simple query using developer console and results were returned.
Here is a screen http://awesomescreenshot.com/0801fo687f
Yes it works for non < Bulk API Jobs >, that's my point.
Xavier
Well I we missed the documentation about the AsyncApexJob object it says
"Represents an individual Apex sharing recalculation job, a batch Apex job, or method with the future annotation."
Thanks