Email parts

Viewing 1 reply thread
  • Author
    Posts
    • #15295

      this is my code in expression :

      Subject = MsgINMail(POP3.Subject);
      Date = MsgINMail(POP3.Date);
      From = MsgINMail(POP3.From);
      To = MsgINMail(POP3.To);
      Cc = MsgINMail(POP3.CC);

      when i dont have CC in my mail im getting exception:
      Inner exception: There is no value associated with the property ‘POP3.CC’ in the message.

      Exception type: MissingPropertyException
      Source: Microsoft.XLANGs.BizTalk.Engine

      should i catch the exception or maybe there is a way to know if it’s null…

    • #15294

      Yep, hate that.

      When a property doesn’t exist and you try to view it you get an error. You might want to check that one inside a scope shape setting it to a variable inside the Orchestration. That way, if it doesn’t exist you can catch and do nothing with the error. Sucks but that’s what I do.

      You could also write a custom pipeline to set a bool value if it exists or not. But that’s a little harder.

      Hope this helps.

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