Getting error related to String Constant

I am getting error “String constant must end with double quote”

I have below draft and sending mail through UI and also taking Name and Date from excel sheet

"Hello,

Attached Is " + CurrentRow.ByField(“Client Name”).ToString +" " + Excel.Sheet(“Sheet1”).Cell(“E2”) + " SLA report For your review

Thanks,
Pramod"

So anybody can help me to resolve this error.

Hi @Pramod_Mangale,

Use following text in body

"Hello,<br><br>Attached Is " + CurrentRow.ByField(“Client Name”).ToString +" " + (Excel.Sheet(“Sheet1”).Cell(“E2”)).ToString + " SLA report For your review<br><br>Thanks,<br>Pramod"

with IsBodyHtml checked
—> image

1 Like

Hi @Pramod_Mangale

If you want a newline you should use Enviroment.Newline in your string,
so change your string as below.

“Hello,” + Enviroment.Newline + Enviroment.Newline +
“Attached Is " + CurrentRow.ByField(“Client Name”).ToString + " " + Excel.Sheet(“Sheet1”).Cell(“E2”) +
" SLA report For your review” + Environment.NewLine + Environment.NewLine +
“Thanks,” + Environment.NewLine +
“Pramod”

3 Likes

can you please post a picture of your wf?
what studiox version are you using?

It worked for me, Thank you so much!!

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