简体   繁体   中英

Need to remove white space between words in BizTalk 2016

I need to remove spaces between words in BizTalk 2016.

The source schema will contain a string with spaces in words, but before mapping it to the destination schema I need to remove spaces in between the words.

One example of the exact requirement is as follows: The source string will be "Reduced LOS" and I need to remove the space in between the words and make it as "ReducedLOS".

Is there any built in functoid in BizTalk that can help me achieve this or do I have to write custom code using scripting functoid?. And if I have to write the code can anyone, please give me some examples.

Simpy using a Scripting Functoid with the below code will do the trick if all you want is spaces removed.

public string RemoveSpaces(string stringWithSpaces)
{
    return stringWithSpaces.Replace(" ","");
}

在此处输入图像描述

If you want other white space removed, see Efficient way to remove ALL whitespace from String?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM