Create dynamic file name in BizTalk 2013


i new biztalk , have been tasked developing orchestration transfer incoming file ftp server. filename has include current date timestamp. inside expression shape tried using simple command assign current year string variable:

fileyear = system.datetime.now.tostring("yyyy");

seems simple enough, when go orchestration debugger , step through orchestration discover variable fileyear not assigned value when step through expression shape, value remains "null".

is wrong approach?

hi,

please try this

newfilename = newfilename + "output_" + system.datetime.now.year.tostring() + "-" + system.datetime.now.month.tostring();     message_2(file.receivedfilename) = newfilename;

for more detailed information, can refer here

http://geekswithblogs.net/bosuch/archive/2011/06/24/changing-the-biztalk-message-output-file-name.aspx

in additon, can refer information:

http://blogs.msdn.com/b/richardbpi/archive/2006/07/05/656948.aspx

http://stackoverflow.com/questions/12197107/biztalk-how-to-set-output-filename-in-sendport-to-represent-current-datetime

hope can you.


<the content provided "as is" without warranty of kind, whether express or implied> thanks
msdn community support

please remember "mark answer" responses resolved issue.it common way recognize have helped you, , makes easier other visitors find resolution later.



BizTalk Server  >  BizTalk Server General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user