function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Susannah PSusannah P 

Get Information for All Batches In A Job GET Request

I'm trying to follow the following documentation to retrieve info about my batch job:

When I try to execute the GET request in the REST Explorer in workbench, I get the error "Unable to find session Id". What am I doing wrong?

User-added image
v varaprasadv varaprasad
Hi Susannah.

Using below query you will get job details : 

AsyncApexJob aaj = [SELECT Id, Status, JobItemsProcessed, TotalJobItems, NumberOfErrors
FROM AsyncApexJob WHERE ID =: batchprocessid ];

System.Debug('Apex job id==='+aaj.Id);

Hope this helps you!

@For Support:
Susannah PSusannah P
Thanks Varaprasad. I'm looking for the actual job items that were processesd. Not just high level totaljobitems. I want to see the actual records inserted in my batch job.