New Line Character not working in Reply Outlook Messages

New Line Character does not work in ‘Body’ property when replying for a outlook message. Should I change the syntax or use any other expression to get the new line.

Ex:
Code:
image

Email:
image

1 Like

@satchitshekar

It should work and check once again.

Alternatively you can try vbCrLf

5 Likes

Yah it would work for sure
Fine let’s be try these stuffs
—either we can use “1”+vbnewline+”2”
Or
—we can use as @lakshman mentioned
Or
—we can write what we want in a notepad and save that as .txt file
Then use READ TEXT FILE activity and pass the file path of that notepad file and get the output with a variable of type string named str_output
—now we can use that variable in the body like this str_output.ToString

Hope this would help you
Cheers @satchitshekar

3 Likes

Hi @Palaniyappan & @lakshman,

I have tried the options suggested but still it does not work. This issue is only observed in ‘Reply To Outlook Mail Message’ activity.

As a workaround, I shall try passing the string after reading the data from the text file.

1 Like

Hi @Palaniyappan,

Tried passing the string after reading the data from the text file. But still it does not work…

Text File:
image

UiPath:

Email:
image

@satchitshekar

Once give it a try with Send Outlook Mail Message activity.

1 Like

Hi @lakshman,

It works for Send Outlook Mail Message activity.

But the problem here is for Reply To Outlook Mail Message activity, since I want to reply for a specific email rather than creating a new mail chain.

2 Likes

Good evening @satchitshekar,

Does the solution from this post work?

2 Likes

Hi @chenderson,

The solution in the other post worked.

We will have to use (br) tag within the string for the newline character.
Ex: string = “Dear User, (br) PFA.”
Expected Outcome in the Email as below =

Dear User,
PFA

Note: Please replace the brackets with < & > symbol.

4 Likes

That’s great news!

Please feel free to mark the answer as solution to help other users in the future.

1 Like

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