0

how we accees apex job status in the vf page by using query logic any suggesttions plz ...thanks

1
  • Hi user25465, what kind of job do you mean ? Questions are often easier to answer when they contain more information and explain us what you have already tried and how you are stuck in progress. – Samuel De Rycke Oct 26 '15 at 8:07
1

When you execute the batch you get the Apex Job ID. Using that ID you can get the status of the batch. The object ApexAsuncJob hold the status of batch job.

You can query this object as:

AsyncApexJob a = [Select Id, Status, ExtendedStatus
        from AsyncApexJob where Id = :apexJobIDVar];

Use ActionPoller tag in vf to get status periodically.

2
  • plese give sample programe – user25465 Oct 23 '15 at 8:55
  • hi Ashwani please Give sample code for that..how i can pass apexJobidvar – user25465 Oct 23 '15 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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