<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to save error screen shot and send it over email in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84244#M35411</link>
    <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;Could anyone help me, how can I build the functionality in Blue prism which can save the captured screenshots of the error on one drive or SharePoint folder and send the screenshot path link over email with the exception message.&lt;BR /&gt;&lt;BR /&gt;Thanks,
&lt;DIV style="text-align: justify;"&gt;Alex&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Alex J&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Dec 2021 12:27:00 GMT</pubDate>
    <dc:creator>KanchanAgarwal</dc:creator>
    <dc:date>2021-12-08T12:27:00Z</dc:date>
    <item>
      <title>How to save error screen shot and send it over email</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84244#M35411</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;Could anyone help me, how can I build the functionality in Blue prism which can save the captured screenshots of the error on one drive or SharePoint folder and send the screenshot path link over email with the exception message.&lt;BR /&gt;&lt;BR /&gt;Thanks,
&lt;DIV style="text-align: justify;"&gt;Alex&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Alex J&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Dec 2021 12:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84244#M35411</guid>
      <dc:creator>KanchanAgarwal</dc:creator>
      <dc:date>2021-12-08T12:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to save error screen shot and send it over email</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84245#M35412</link>
      <description>Can anyone help me for the same to fix&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Alex J&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Dec 2021 13:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84245#M35412</guid>
      <dc:creator>KanchanAgarwal</dc:creator>
      <dc:date>2021-12-08T13:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to save error screen shot and send it over email</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84246#M35413</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;For this scenario,, I would suggest creating a custom business object to capture screenshot. You can follow the below steps:&lt;BR /&gt;&lt;BR /&gt;1) First create a business object named '&lt;STRONG&gt;Utility-Screenshots&lt;/STRONG&gt;' and the in the page description stage of the '&lt;STRONG&gt;Initialise&lt;/STRONG&gt;' action, add the below dependencies and namespaces under the '&lt;STRONG&gt;Code Options&lt;/STRONG&gt;' tab while selecting the language as '&lt;STRONG&gt;Visual Basic&lt;/STRONG&gt;':&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15956.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16121i7589B05B3E91E756/image-size/large?v=v2&amp;amp;px=999" role="button" title="15956.png" alt="15956.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Now, create a new action called '&lt;STRONG&gt;Take Screenshot&lt;/STRONG&gt;' with two input parameters called '&lt;STRONG&gt;Screenshot Folder Path&lt;/STRONG&gt;' (Text) and &lt;STRONG&gt;Screenshot File Name&lt;/STRONG&gt;' (Text) as shown below:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15957.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16120iDC0807D04A9278EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="15957.png" alt="15957.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Add the code stage as shown above and use the below input parameters and code. No output parameter as such is required :&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15958.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16119iC29D4128FC4F0652/image-size/large?v=v2&amp;amp;px=999" role="button" title="15958.png" alt="15958.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15959.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16125iDA7F9CD9D71EE5E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="15959.png" alt="15959.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The code is as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;' Initialize variables&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Dim bounds As Rectangle&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;Dim screenshot As System.Drawing.Bitmap&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;Dim graph As Graphics&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;'Set screen related parameters&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;bounds = Screen.PrimaryScreen.Bounds&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;screenshot = New System.Drawing.Bitmap(bounds.Width, bounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppRgb)&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;'Generate screenshot&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;graph = Graphics.FromImage(screenshot)&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;graph.CopyFromScreen(0, 0, 0, 0, bounds.Size, CopyPixelOperation.SourceCopy)&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;'Save Screenshot&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;screenshot.Save(Screenshot_Folder_Path+"\"+Screenshot_File_Name)&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;screenshot.Dispose&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Test Results:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15960.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16122iFDF1A8377B0F98AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="15960.png" alt="15960.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15961.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16127i4E0FC9783E475E6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="15961.png" alt="15961.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;From the process studio, you can easily invoke this action whenever you are in the unhappy path from you 'Recover' and 'Resume' stage and once the screenshot has been saved at the given file path, you can use either 'SMTP/POP3' or Outlook VBO to send an email with this screenshot as an attachment&lt;BR /&gt;&lt;BR /&gt;Let me know if it helps!!&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Automation Consultant&lt;BR /&gt;Blueprism 6x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Dec 2021 14:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84246#M35413</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2021-12-08T14:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to save error screen shot and send it over email</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84247#M35414</link>
      <description>Thanks a lot Devneet for the detailed info.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;MuraliKrishna&lt;BR /&gt;Senior Consultant - Automation Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 12 Dec 2021 18:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-save-error-screen-shot-and-send-it-over-email/m-p/84247#M35414</guid>
      <dc:creator>krishna.kodimurali9</dc:creator>
      <dc:date>2021-12-12T18:44:00Z</dc:date>
    </item>
  </channel>
</rss>

