Attach screenshot to Send Outlook Mail Message

I want to take screenshot of application error and attach it using the ‘Attach Files’ option of the Send Outlook Mail Message.
How can it be done?
I am using Take Screenshot & Save Image options but not sure how to attach it.

1 Like

Hi @sayanghosh333

Store the screenshot path in a string variable and specify that string variable in the Send Outlook Mail message activity

Thanks
Anoop

1 Like

Hey, i did this but it is returning only the path in text and not the file as image.

Fine
—use TAKE SCREENSHOT activity to take the screenshot and get the output with a variable of type Image

—now pass this variable as input to SAVE IMAGE activity where mention the image variable as input and also the filepath like this
“Yourfolderpath\”+”Yourfilename”+”.png”

This will store that file to that folder

Now in attach file property of SEND OUTLOOK MAIL ACTIVITY mention the same as input argument like this
“Yourfolderpath\”+”Yourfilename”+”.png”

Cheers @sayanghosh333

1 Like

Hi @sayanghosh333

Please try the attached workflow

And use the ScreenshotPath variable in Send Outlook Mail Acitvity
Screenshot.xaml (4.8 KB)

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