BatchHeader::getCurrentBatchHeader Method [AX 2012]

Gets the BatchHeader object that is currently being executed.

Syntax

client server public static BatchHeader getCurrentBatchHeader()

Run On

Called

Return Value

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).

Remarks

Application code can use the method getExecutingJobHeader to get the currently executing BatchHeader instance.

See Also

Reference

BatchHeader Class