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:
Email:
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:
Email:
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
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.
Hi @Palaniyappan,
Tried passing the string after reading the data from the text file. But still it does not work…
Text File:
UiPath:
Email:
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.
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.
That’s great news!
Please feel free to mark the answer as solution to help other users in the future.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.