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:



40 comments:

  1. 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
  2. The bar is set high for every one of the bloggers out there.
    Resumeyard

    ReplyDelete
  3. 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
  4. Hello Sunil - Any tips to write a test class on this?

    ReplyDelete
  5. 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
  6. 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
  7. 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
  8. They were searching for access to the business world and direction in how to approach this outside animal. more

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

    ReplyDelete
  10. 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
  11. 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
  12. Have you ever come across employments that did not have enough insights with respect to the job details or obligations? job posting

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

    ReplyDelete
  14. 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
  15. 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
  16. 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
  17. Three are usually cheap Ralph Lauren available for sale each and every time you wish to buy. anglia mea

    ReplyDelete
  18. You are sharing a piece of nice information, it helped me. Keep it up and in the future sharing more articles like this. jobsearchine.com is here to help you to jobs in muncie Indiana.

    ReplyDelete
  19. I got what you mean , thanks for posting .Woh I am happy to find this website through google. Fair Work Australia

    ReplyDelete
  20. Welcome to the party of my life here you will learn everything about me. Carpenter work jobs New York

    ReplyDelete
  21. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. Voice of Nigeria

    ReplyDelete
  22. The new Zune browser is surprisingly good, but not as good as the iPod’s. It works well, but isn’t as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser that’s not an issue, but if you’re planning to browse the web alot from your PMP then the iPod’s larger screen and better browser may be important. Unique Dofollow Backlinks

    ReplyDelete
  23. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. 88카

    ReplyDelete
  24. It is regular for job sheets with have great control norms to erase or alter up to 25% of all job postings as being unseemly. Most job sheets don't consider posting of messages, Url's, utilization of protected material, abusive comments, bogus, incorrect or misdirecting data, illicit or untrustworthy substance. https://europa-road.eu/hu/foldmunkagep-szallitas-debrecen.php

    ReplyDelete
  25. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Visa-Bisnis-India

    ReplyDelete
  26. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. 먹튀검증업체

    ReplyDelete
  27. I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. 토토사이트

    ReplyDelete
  28. I am not sure where your getting your information, but good topic. I needs to spend some time learning much more or understanding more. 토토

    ReplyDelete
  29. They were active listeners and 토토사이트viewed meetings deadlines as an imperative.

    ReplyDelete
  30. Thanks for giving so much of Information. Are you looking for Online teaching jobs from home in India. Apply for get the teaching jobs online from home. Become an online tutor in India

    ReplyDelete