Execute Batch Apex from lightning component with progress bar to show batch job status

4:18 PM

In this post we will see how to execute a batch apex class and add a lightning component to display the progress of the batch job.

The batch job progress status is retrieved from the object AsyncApexJob.

Let's first create a batch job.

Create an apex controller for the lightning component

Create a lightning component for the progress indicator.