In BizTalk 2004, to write any BAM event from the BizTalk pipeline, you will need to write some code :) To simplify the learning, I will illustrate by adapting an SDK sample. Adapt the SDK CustomComponent (found in .../SDK/Samples/Pipelines/CustomComponent)