Biztalk expression editor: lowercase – uppercase

Home Page Forums BizTalk 2004 – BizTalk 2010 Biztalk expression editor: lowercase – uppercase Biztalk expression editor: lowercase – uppercase

#12977

Sorry, I tested this on Biztalk 2006 and assumed it was the same on 2004.

It would appear that Biztalk 2004 classifies strings, ints, doubles, etc as distinguished types and does not allow access to their properties or methods.

One possibility is to create a helper function in a C# assembly

[code:1:c69b8c4d44]namespace Biztalk.Utilities
public class StringFunctions
{
public static string ToUpper(string inputStr)
{
return inputStr.ToUpper();
}
}[/code:1:c69b8c4d44]

Build and GAC this.
Add a reference to you biztalk project
And try this:
[code:1:c69b8c4d44]agentNameStr =(System.String)xpath(myMesssage,myXpathStr)
agentNameStr = Biztalk.Utilities.StringFunctions.ToUpper(agentNameStr);[/code:1:c69b8c4d44]