2010 m. liepos 13 d., antradienis

File Name Scripts in BTS

Usually in all tutorials file names are constructed using %MessageID% macro. There are more very usefull macros for file name, but only this one guarantees that file name will be unique. I would suggest you to use some combination of %MessageID% with others, because even %datetime_bts2000% gave me "file already exists" error. So be Carefull.

Here is the list of macros, witch I found at http://weblogs.asp.net/jan/archive/2004/02/20/77152.aspx.

Unique identifier of the message in BizTalk Server (GUID). The value is taken directly from message context property BTS.MessageID
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)
UTC date time in format YYYY-MM-DDThhmmss (e.g. 1997-07-12T103508)
Local date time + time zone from GMT in format YYYY-MM-DDThhmmssTZD, (e.g. 1997-07-12T103508+800)
UTC time in format hhmmss
Local time + time zone from GMT in format hhmmssTZD (e.g. 124525+530)
%SourceFileName% (it's case sensitive)
name of the file that was received by the receive port.

Komentarų nėra:

Rašyti komentarą