Can we get job id or job name from current running job? For example:
global class MySchedule implements Schedulable {
global void execute(SchedulableContext sc) {
Id jobId = sc.getJobId();
String jobName = sc.getJobName();
}
}
Is there any workaround to get the current job id or job name ?