File Adapter Macros
It's been a crazy weekend, worked a ton of hours already. That said, I thought I would archive here some information that can be found other places, but I wanted at hand when next I needed it.
The following table contains the macro replacements that work within the File Adapter for BizTalk Server.
Coordinated Universal Time (UTC) date time in the format YYYY-MM-DDThhmmss (for example, 1997-07-12T103508).
UTC date time in the format YYYYMMDDhhmmsss, where sss means seconds and milliseconds (for example, 199707121035234 means 1997/07/12, 10:35:23 and 400 milliseconds).
Local date time plus time zone from GMT in the format YYYY-MM-DDThhmmssTZD, (for example, 1997-07-12T103508+800).
Name of the destination party. The value comes from message the context property BTS.DestinationParty.
Identifier of the destination party (GUID). The value comes from the message context property BTS.DestinationPartyID.
Qualifier of the destination party. The value comes from the message context property BTS.DestinationPartyQualifier.
Globally unique identifier (GUID) of the message in BizTalk Server. The value comes directly from the message context property BTS.MessageID.
Name of the file from where the File adapter read the message. The file name includes extension and excludes the file path, for example, foo.xml. When substituting this property, the File adapter extracts the file name from the absolute file path stored in the FILE.ReceivedFileName context property. If the context property does not have a value, for example, if message was received on an adapter other than File adapter, then the macro will not be substituted and will remain in the file name as is (for example, C:\Drop\%SourceFileName%).
Name of the source party from which the File adapter received the message.
Identifier of the source party (GUID). The value comes from the message context property BTS.SourcePartyID.
Qualifier of the source party from which the File adapter received the message.
UTC time in the format hhmmss.
Local time plus time zone from GMT in the format hhmmssTZD (for example, 124525+530).