Get Text activity is extracting unexpected character

Hi Everyone,

I need help with my situation.

I extracted a string using the get text activity and saved it in a string variable.

Example:

@"
Hi Alvin,

Please see additional information for your reference

IMSO: 7106137458

Invoice number: 9925548608

Regards,
"

as you can see there is a @ symbol prior the double quotation marks.

when i tried to use replace function, it’s not removing the @ symbol.

Hope someone can guide me accordingly

Regards.

Hi @alvin.c.apostol26

Check the below thread.

you get the @ symbol in Locals Panel while you debug the workflow but while you print it in Message box who won’t get that.

Regards

@alvin.c.apostol26

inputString = @"
Hi Alvin,

Please see additional information for your reference

IMSO: 7106137458

Invoice number: 9925548608

Regards,
"

cleanedString = inputString.Trim().TrimStart("@"c)

Hi @alvin.c.apostol26

I think you are copying the text from the locals panel. In the locals panel you get the way as in below image
image

to get the whole string in one line you can use below syntax:

originalText= "This Is the sample
String text For testing"
cleanedText= originalText.ReplaceLineEndings(" ")

Hope it helps!!

Hi,

FYI, the following document will help you. (It’s C# syntax)

Regards,

Oh my! I did not expect that I’m already doing the right thing. Thanks for you quick response

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.