|
Home > Archive > BizTalk Server General > April 2004 > GUID in filename in sendport
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
GUID in filename in sendport
|
|
| krishna 2004-04-29, 1:53 pm |
| I need a GUID in the output file name that can also be accessed inside the orchestration.
I tried using %MessageID% in the output filename and then using BTS.MessageID in the orchestration. But the two GUIDs are not the same. This might be because when a message is sent via SEND port, a copy of the message is being sent and hence it gets a unique, never before seen GUID.
Any ideas, workarounds ?
I need this functionality for the following scenario: When i receive a file X, I am trying to create a message that says "file X has been received and renamed to GUID-X". I want to rename files so that if a file is sent with the same name, it doesnt get overriden. | |
| Christof 2004-04-30, 7:35 am |
| You may set the "ReceivedFileName" property manually. Your send port can
take that into account if you want it to. (Use the macro for this.)
Kind regards,
Christof
"krishna" <krishna.15hoqu@mail.webservertalk.com> wrote in message
news:krishna.15hoqu@mail.webservertalk.com...
>
> I need a GUID in the output file name that can also be accessed inside
> the orchestration.
>
> I tried using %MessageID% in the output filename and then using
> BTS.MessageID in the orchestration. But the two GUIDs are not the same.
> This might be because when a message is sent via SEND port, a copy of
> the message is being sent and hence it gets a unique, never before seen
> GUID.
>
> Any ideas, workarounds ?
>
> I need this functionality for the following scenario: When i receive a
> file X, I am trying to create a message that says "file X has been
> received and renamed to GUID-X". I want to rename files so that if a
> file is sent with the same name, it doesnt get overriden.
>
>
>
> --
> krishna
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message204246.html
>
| |
| krishna 2004-04-30, 12:29 pm |
| Thanks Christof. That worked !!
quote: Originally posted by Christof
You may set the "ReceivedFileName" property manually. Your send port can
take that into account if you want it to. (Use the macro for this.)
Kind regards,
Christof
"krishna" <krishna.15hoqu@mail.webservertalk.com> wrote in message
news:krishna.15hoqu@mail.webservertalk.com...
>
> I need a GUID in the output file name that can also be accessed inside
> the orchestration.
>
> I tried using %MessageID% in the output filename and then using
> BTS.MessageID in the orchestration. But the two GUIDs are not the same.
> This might be because when a message is sent via SEND port, a copy of
> the message is being sent and hence it gets a unique, never before seen
> GUID.
>
> Any ideas, workarounds ?
>
> I need this functionality for the following scenario: When i receive a
> file X, I am trying to create a message that says "file X has been
> received and renamed to GUID-X". I want to rename files so that if a
> file is sent with the same name, it doesnt get overriden.
>
>
>
> --
> krishna
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message204246.html
>
|
|
|
|
|