BatchHeader::getCurrentBatchHeader Method [AX 2012]
Gets the BatchHeader object that is currently being executed.
client server public static BatchHeader getCurrentBatchHeader()
Type: BatchHeader Class
An instance of the BatchHeader object that is currently being executed if it is run in the context of a batch task; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).
Application code can use the method getExecutingJobHeader to get the currently executing BatchHeader instance.