Re: Filename with Incrementing Counter

Home Page Forums BizTalk 2004 – BizTalk 2010 Filename with Incrementing Counter Re: Filename with Incrementing Counter

#25716

Hi.

I use a GUID in an orchestration to write the file into a separat folder. And the same GUID into a Database so I find the right dataset to the file I read in.

And I can write each file in the same folder. If you don’t need to use a counter starting by 1 and so on … these are two lines of code in the orchestration.

In the expression shape use: RSP_GUID = System.GUID.NewGUID();

In the Message Assignment Shape use: message(FILE.ReceivedFileName) = “RSP” + “RSP_GUID” + “.xml”;

I hope this helps.

cheers

Wolfgang