RE: BizTalk 2004: Dynamic Port Binding - Filename and Path - Macros
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > RE: BizTalk 2004: Dynamic Port Binding - Filename and Path - Macros




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    RE: BizTalk 2004: Dynamic Port Binding - Filename and Path - Macros  
Neal Walters


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-11-04 10:52 PM

Below is from a prior post with some of my own additions, it assumes you are
using orchestration:

In your orchestration (this solution does require Orchestration) set the
FILE.ReceiveFileName to what you want the file
name to be in a Message Assignment Shape after you create the outbound
message:

InvoiceMessage(FILE.ReceivedFileName) = "Test12345.xml" 'This could be more
complicated (see below).

in your send port under FILE Transport Properties

File name: %SourceFileName%

Hope this helps you.

This trick was from Microsoft Community Orchestration, answer posted by Bill
Chesnut.  Above from Post from Microsoft Newsgroup 6/13/2004.

Following additional examples by Neal Walters:

I recently did a demo of this in class and it was remarkable easy.
I was receive a "StubbornPO" and converting it to an 'EasyPO" using a
Transform shape (map).  I added a Message-Assignment shape after the
Transform and added the following line of code:

mEasyPO(FILE.ReceivedFileName) = mEasyPO.PONumber + ".xml";

Note that "PONumber" was a distinguished field in my schema.

I suppose if you wanted to further add the %MessageID%.xml in the send port,
you could leave the ".xml" out in the orchestration code above (you probably
don't want two .xml's in your filename).

I did prefix the message with additional text and the additional text got
added just fine in front of the "FILE.ReceivedFileName".  So for example in
my send port I set filename = "OrchLargePO_%SourceFileName%" and since my PO
number was "STU-002" the ultimate filename was "OrchLargePO_STU-002.xml".

Later I will see what effect this has on HAT and tracking.

Neal Walters
http://Biztalk-Training.com






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register