Embed image with date

Hi,

Would someone be able to assist with what is wrong with the attached?

"

Hi All,

Please see attached link For sufficent vs insufficient data To 31/07/2019:


View Report

<img src="“C:\Molex\SUFFvsINSUFF” + “Date.Now.ToString(“ddMMyy”)” +".png"">
"

the img src is giving me errors.

Regards,
Shawn

1 Like

@shawnmurray,

Are you trying to embed image in a mail?

1 Like

remove double quotes for Date

try with <img src="“C:\Molex\SUFFvsINSUFF” + Date.Now.ToString(“ddMMyy”)+".png"">

1 Like

Correct i am @sarathi125

Sorry but that still gives an error
@Sreelatha278

use a assign activity like this
str_source = “C:\Molex\SUFFvsINSUFF”+Date.Now.ToString(“ddMMyy”)+".png"

Then node should be like
"<img src="+""""+str_source.ToString+""""+">"

Cheers @shawnmurray

1 Like

@Palaniyappan

Hi,

I am not too sure what you mean here…

Main.xaml (23.3 KB)

Please see the attached.

The send email activity is at the bottom

try placing this body

“<html><img src="“C:\Molex\SUFFvsINSUFF” + Date.Now.ToString(“ddMMyy”)+".png""></html>”

1 Like

@Sreelatha278
Still getting the error

Still got an extra " in there

1 Like

Where?

Thanks

Is SUFFvsINSUFF this first part of the file name?

1 Like

Yes , it would be like SUFFvsINSUFF26112019.png

write body(String) in a single line. It wont show validation error.

1 Like

@Sreelatha278 Not quite sure what you mean here

1 Like

@Sreelatha278 And this should embed the image?

Thanks