You need to sign in to do that
Don't have an account?

How to get the jobName using apex scheduleClass name or id?
Hi,
I want to get the jobname for the schedule class by using apex schedule class name or id. I don't know the when it was scheduled and job Name. Now I would like to add this schedule class and reschedule it again. When i try to add this job i am getting the following error "This Apex class has batch or future jobs pending or in progress" .
Thanks,
Mohan S
I want to get the jobname for the schedule class by using apex schedule class name or id. I don't know the when it was scheduled and job Name. Now I would like to add this schedule class and reschedule it again. When i try to add this job i am getting the following error "This Apex class has batch or future jobs pending or in progress" .
Thanks,
Mohan S
Please find the below steps to find the job details
From Setup, enter Jobs in the Quick Find box, then select Apex Jobs.
or
Please refer the below link to monitor your jobs.
https://trailhead.salesforce.com/modules/asynchronous_apex/units/async_apex_monitoring
Please mark this as best answer if it helps.
Thanks,
Balaji J
You Can achieve this by using following code and refer the following link to find more
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
If you found this answer helpful then please mark it as best answer so it can help others.
Thanks
Akshay
From setup enter jobs and select Scheduled Jobs, Then you can see your org's Scheduled jobs.
Look into this screenshot
If your org has too many jobs that scheduled to the future, then you will get an error "This Apex class has batch or future jobs pending or in progress". To avoid this error please delete unwanted errors from the page.
Regards
Ajvad Aju