Why is there an error that expression expected when I include this in the body of outlook message?

“Dear” +Name+
“Hihihi”
“Yours Sincerely”

@Vivian_Thian

Welcome to the community

It should be like this

"Dear" +Name+
"Hihihi
Yours Sincerely"

Cheers

I tried but still does not work

@Vivian_Thian

May I know what is the error can you show how you are trying is what is not working

cheers

How do I make the “Yours Sincerely” to appear in a new line?

I am trying to make the “Dear” as one line “Hihihi” as another new line below and “Yours sincerely” as another new line below.

@Vivian_Thian

Try this

"Dear" +Name + Environment.NewLine + "Hihihi" + Environment.NewLine + "Yours Sincerely"

Even this would work

image

cheers

How do I add a spacing between “Dear” and the name variable?

Set the body as Html property true and pass break tags wherever necessary.

Eg: “Hello
UiPath
Forum”

Gives you:
Hello
UiPath
Forum

Here you go:

image

Thank you.

How to insert a variable for this

@Vivian_Thian

After Hi if you give space space would be coming

even if you use <br> its the same way to insert a variable

cheers

If I want to put “Hi”+ name variable. How do I put it in html format?

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