Can I make BizTalk ignore an invalid email attachment such as an image as part of a senders signature file?

Home Page Forums BizTalk 2004 – BizTalk 2010 Can I make BizTalk ignore an invalid email attachment such as an image as part of a senders signature file?

Viewing 1 reply thread
  • Author
    Posts
    • #26123

      We have a business process where a custoier provides a valid CSV which is being processed by BizTalk 2010 – but IF a customer sends in an email with a signature file that contains a bitmap or jpeg – BizTalk fails to process the file

      It’s very hard to modify external customer behaviour, so is it possible to configure BizTalk to ignore invalid attachments and only act upon valid files in format of CSV?

      If yes – can you give me a pointer on where to look?

      Thank you.

       

    • #26135

      I guess you have an orchestration in your solution – if no create one. Inside the orchestration define a variable with type Microsoft.XLANGs.BaseTypes.XLANGMessage and assign the incoming email message to this variable. You can refer to each part of the email (e.g. body, attachments) with expression  "varableName[1]", "variableName[2]" etc. Now you have access to various properties of each email part, for example the file name of the attachment is <variable_holding_actual_message_part>.GetPartProperty(typeof(MIME.FileName)) – note that this method returns Object type. And thus you are in the finish line as you can check file extension and based on that decide what to do…

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