Is it possible to get the ApexJobId within the Future method apex code (or from the method its invoked from)?
Use case - Our application is invoking multiple same future calls from within one apex transaction. I want to capture the JobId of each call and track the progress. I am using a helper custom object to store the call details along with the record it's processing on.
Challenge - Just making an AsyncApexJob SOQL will retrieve all jobs and but I can't relate which job was for which record.
Alternate Solution - Should I be using Queueable Apex interface instead?