How to check for the existence/count of a given distinguished property in BizTalk

 System.Convert.ToInt32(xpath(Response_Select_Query,”count(copy xpath from schema and paste here)”));

———————————————-OR———————————————————————————

theStringValue = xpath(inputMessage, “string(//*[local-name()=’MyElementName’])”);

from the following link

http://www.arquitecturadesoftware.org/blogs/joaomartins/archive/2007/04/11/biztalk-check-if-promoted-property-exists-in-context.aspx

And now you can use System.String.IsNullOrEmpty(theStringValue) to check if the value is present.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: