Using %SourceFileName% with custom adapter

Home Page Forums BizTalk 2004 – BizTalk 2010 Using %SourceFileName% with custom adapter

Viewing 1 reply thread
  • Author
    Posts
    • #16296

      Hi,

       I have created a custom adapter in VB .Net to receive files. I want to get the filename of the file, which is received through that adapter, to be used later in the orchestration to send files to with the same name(as received filename) to a folder.

      Please guide me with a probable solution.

    • #16343

      You need to promote the file name into the FILE.ReceivedFileName property in the message context. You can do this in the adapter  after you create the IBaseMessage.  Call the IBaseMessage.Context.Promote() method.

      Details on the FILE.ReceivedFileName can be found in the property schema C:\Program Files\Microsoft BizTalk Server 2004\SDK\Include\bts-file-properties.xsd

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.