How to get the name of a created file

Home Page Forums BizTalk 2004 – BizTalk 2010 How to get the name of a created file

Viewing 4 reply threads
  • Author
    Posts
    • #23029

      Hi,
      in my orchestration I create a file with the File-Adapter.
      In the biztalk-administration I set the filename with the %MessageID% – macro.
      Later in the orchestration I want to send the file as email-attachment.
      But I don`t know how to get the name of the file (or the MessageID therefore used).

    • #23032

      Hey Man, How are you?

       Kumar Nitesh

    • #23040

      YourMessage(BTS.MessageID)

      • #23056

        Thanks.

         

      • #23069

        Ehm.

        With “YourMessage(BTS.MessageID)” I get this number: “a47f864c-7ca6-44d4-bcc5-7571ff936dec”.

        The file created with %MessageID% is “2353C343-4131-4910-9989-055F5CC201AD”.

         

    • #23070

      your_Message(FILE.ReceivedFileName)

    • #23079

      well, there is no way you can pick up filename wich will be assigned inside your send port only.

      MessageID will always be different from what you can read in your orchestration because when a message after send pipelines comes into send adapter – it already has a new MessageID.

      If you really require using the same file name in you E-mail attachment, you can build a file name in your orchestration (you can generate GUID if you want a unique name) and include it into message as yourOutputFileMessage(FILE.ReceivedFileName). Then in FILE send port you use %SourceFileName% macro. Later in the orchestration you just use your in-house built file name to assign it to an attachment.

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