BatchHeader::getCurrentBatchTask Method [AX 2012]
Gets the currently executing batch task or an empty record.
client server public static Batch getCurrentBatchTask()
Type: Batch Table
A record that contains the batch task that is being executed.
The getExecutingTask function can be used by application code to get the currently executing task.