I’m new to BizTalk Server 2004. I’m working on an orchestration that receives a message \”msg1\” which has the following nodes: CustomerName CustomerEmail
I want to use the expression tool to extract the CustomerEmail from \”msg1\” then send an email to him using the \”mailto\” feature.
I couldn’t find any helpful sites that explains how to do that. I guesss I should use Xpath in the first step then \”mailto\” but I don’t know how to do that!
The easiest way is to make the CustomerEmail a distinguished field in the schema. Then in the expression shape you can access this data like this: strVar = message.CustomerEmail;
Otherwise you can use the xpath function: strVar = xpath(message, \”xpath string\”);
To specify a destination email address on a dynamic port you set the port address Url: portname(Microsoft.XLANGs.BaseTypes.Address) = \”mailto:\” + strVar