Home Page › Forums › BizTalk 2004 – BizTalk 2010 › FailedMessage Schema? › Re: FailedMessage Schema?
July 22, 2008 at 6:03 AM
#20205
Thanks Greg,
I saw that MSDN article before, I think I was just over-complicating my code. For those of you who don’t know, there is a way to check if a Promoted Property exists or not, which is extremely useful in this case:
if(ErrorReport.SendPortName exists msgFailedMessage)
{
emlBody = msgFailedMessage(ErrorReport.SendPortName);
}
else if(ErrorReport.ReceivePortName exists msgFailedMessage)
{
emlBody = msgFailedMessage(ErrorReport.ReceivePortName);
}
Here is an MSDN article, which lists the rest of these awesome operators: http://msdn2.microsoft.com/en-us/library/aa561847.aspx