BizTalk File Naming Macros

Just for reference because I always forget.

BT File name macros:

%MessageID%
Unique identifier of the message in BizTalk Server (GUID). The value is taken directly from message context property BTS.MessageID
%datetime_bts2000%
UTC date time in format YYYYMMDDhhmmsss, where sss means seconds and milliseconds (e.g. 199707121035234 means 1997/07/12, 10:35:23 and 400 milliseconds)
%datetime%
UTC date time in format YYYY-MM-DDThhmmss (e.g. 1997-07-12T103508)
%datetime.tz%
Local date time + time zone from GMT in format YYYY-MM-DDThhmmssTZD, (e.g. 1997-07-12T103508+800)
%time%
UTC time in format hhmmss
%time.tz%
Local time + time zone from GMT in format hhmmssTZD (e.g. 124525+530)
%SourceFileName%
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%).

你可能感兴趣的:(File)