Flat file as email-attachment

Home Page Forums BizTalk 2004 – BizTalk 2010 Flat file as email-attachment

Viewing 1 reply thread
  • Author
    Posts
    • #23014

      Hi,

      in my orchestration I get an XML-File from MS-Dynamics 4.0 which I convert

      to a flat file with a mapping.

      Save this File to disk works fine.

      But under certain circumstances I additionally want to send the flat file as

      a email-attachment.

      Therefore I have a dynamic send port.

      Sending the email works also fine, but the attachment isn`t the flat file but the xml.
      It looks like, that the mapping is not called.

      In a message-assign-shape I assign the flat-file-message to the attachment-message like this:

      EmailMessage.Attachment = WDKOut;


      I have tried to call the pipeline (with the FlatFileAssembler) direct inside

      of my

      orchestration, but now I have no more ideas.

      My email-message is a multipart-message (Body (RawString) and Attachment

      (Schema of the flat file)).

      I have also tried to set only one message-part.

      But whatever I try I always get the XML and not the flat file in the

      attachment.

      Appreciate for every hint.

    • #23016

      Ok.

      Now It`s plain to me why I allways get the unmapped xml in my attachment.

      Because the FlatFile-Pipe is never called, when sending the mail instead of create a file in the file-system.

      I think I have two options:

      1. Call the pipeline inside of the orchestration.

         I have tried this without success.

      2. Allways reate the file in the file-system, remember the filename and then set this file as the email-attachment.

         Here I don`t know how to do this 2 steps…

      • #23018

        Ok.

        One step further.

        With http://geekswithblogs.net/arnoudlems/articles/69521.aspx I have managed to programmatically call the pipeline-compment from within my orchestration.

        Now I get the email not with the xml as attachment but with a flatfile.

        But this flatfile isn`t the one I have expected.

        It looks like it don`t pass through the mapping (xml–>flat file).

        • #23055

          OMG

          I had 2 Pipelines.

          One with the Mime-Encoder to set the email-address and one with the

          FlatFile-Assembler.

          I put both in 1 Pipeline and thats it…

          The schema of the Message I used to send the email I set to the

          flatfile-schema.

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