Friday, October 14, 2016

Batch Apex Job Progress Bar

We can display the progress of Batch Apex job on UI to user. Apex allows you to query the job status by query AsyncApexJob  object and getting all details about running job like status, JobItemsProcessed, NumberOfErrors, TotalJobItems etc. By using apex, we can manipulate the result and display the progress bar for batch job.

Suppose you already have Apex Batch class written. Here for example "RecordTypeAccessFinder" is batch class is already present.

Below is VF page and Apex class Code:



30 comments:

  1. Nowadays, most of the businesses rely on cloud based CRM tool to power their business process. They want to access the business from anywhere and anytime. In such scenarios, salesforce CRM will ensure massive advantage to the business owners. Salesforce Training | Salesforce Training in Chennai

    ReplyDelete
    Replies
    1. IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes. IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble.Final Year Projects for CSE

      Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining .

      Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai

      The Angular Training covers a wide range of topics including Angular Directives, Angular Services, and Angular programmability.Angular Training

      Delete
  2. Hi
    Quite Interesting post!!! Thanks for posting such a useful post. I wish to read your upcoming post to enhance my skill set, keep blogging.
    Regards,
    Cloud computing course in Chennai|cloud training in chennai

    ReplyDelete
  3. The bar is set high for every one of the bloggers out there.
    Resumeyard

    ReplyDelete
  4. where is Batch class "RecordTypeAccessFinder" code

    ReplyDelete
    Replies
    1. Hi jyothi,

      It was assumption that you want to display progress bar for "RecordTypeAccessFinder". You can replace with any batch class that you have in your org and see the progress bar.

      Hope this help!!

      Thanks

      Delete
  5. Hello Sunil - Any tips to write a test class on this?

    ReplyDelete
  6. Hello Sunil - I am trying to write a class for the controller. However I seem to have got stuck when I attempt to pass the batchid as its returning a null. Could you please help me know how do I go about this?

    ReplyDelete
  7. Nice Post i learned a lot From the Post Thanks for sharing,learn the most ON-DEMAND software Training in Best Training Institutions
    Instructor-LED Salesforce Online Training
    Best Salesforce Online Training
    Salesforce Training

    ReplyDelete

  8. Its Very a useful post to everyone and learn AWS from best IT training institute TO register Now
    Amazon web Services Training
    Salesforce training in Hitech city
    Salesforce training in Hyderabad

    ReplyDelete
  9. You can awe your questioners by utilizing industry terms in your discussion amid the meeting, all since you took an online course. go check out

    ReplyDelete
  10. They were searching for access to the business world and direction in how to approach this outside animal. more

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. You begin your job hunt by first identifying your transferable, functional, skills. In fact, you are identifying the basic building blocks of your work.job placement Consultants in India

    ReplyDelete
  13. You can awe your questioners by utilizing industry terms in your discussion amid the meeting, all since you took an online course.
    Job consultants hyderabad

    ReplyDelete
  14. Have you ever come across employments that did not have enough insights with respect to the job details or obligations? job posting

    ReplyDelete
  15. I love this blog!! The flash up the top is awesome!! job posting

    ReplyDelete
  16. I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up..
    Jobs in Dubai

    ReplyDelete
  17. Thanks for Sharing This Article.It is very so much valuable content. I hope these Commenting lists will help to my website
    servicenow online training
    best servicenow online training
    top servicenow online training

    ReplyDelete
  18. Involving top management makes job seekers feel that the hire is an important position, and that they have personally been selected as the "candidate of choice" by the top brass. Contractors should begin closing the deal the moment they know that they want someone for hire. They should not let up until an offer is on the table and accepted.Cover letter

    ReplyDelete
  19. A career involves developing a long-term focus and workplace diversity Singapore viewing each job from a perspective of what has been learned and the skills that have been developed or acquired.

    ReplyDelete
  20. Three are usually cheap Ralph Lauren available for sale each and every time you wish to buy. anglia mea

    ReplyDelete