Jan 152008
 

One of the properties you’ll quickly wish you had using either the BizTalk HIPAA or BaseEDI adapters is the original file name of the message with which you are dealing.  We’ve all searched for BTS.ReceiveFileName to no avail. 

Here I’m showing you that there is no BTS.ReceiveFileName:

image

We’ll I’ve decided to build a C# class with two functions that will extract that for you easily.

The class I created has two static overloaded functions 1: GetBaseEDIOriginalFileNameFunction, and  2: GetHIPAAOriginalFileNameFunction. 

Simply pass the <yourmessage(BTS.MessageID)> and (optionally) the Server where your HIPAA or BaseEDI databases are located into the function and you’ll have your original filename.

 

Email me if you’d like a copy