How to access the Header properties of a message in Code

Answers

You can determine, where does the message comes from by inspecting it's header, get header Id from:

$$$JobCurrentHeaderId

and query Ens.MessageHeader class.

Alternatively, check "process" variable in BPL or current context in ObjectScript processes. Maybe the whole object would be available somewhere.