<?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 RE: How to Extract table from HTML Mail body!!! in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51564#M6598</link>
    <description>Hello,&lt;BR /&gt;I am also sharing my code that reverse calculates a datatable from very unformated simple &amp;lt;table&amp;gt; tags. Hope it helps. Copy and paste this code to the global code&lt;BR /&gt;You can use this in any code stage like shown:&lt;BR /&gt;&lt;BR /&gt;string strVal = "&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Harry&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Potter&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;12&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1994&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;James&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Hetfield&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;30&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1969&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Kirk&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Hammet&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;87&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1990&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;BR /&gt;DataTable dt = reverseTableTag(strVal);&amp;nbsp;&lt;BR /&gt;//dt is your collection output&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Barış Karakaş&lt;BR /&gt;Process performance specialist&lt;BR /&gt;TEB&lt;BR /&gt;Europe/Istanbul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Sep 2021 07:30:00 GMT</pubDate>
    <dc:creator>BKarakas94</dc:creator>
    <dc:date>2021-09-01T07:30:00Z</dc:date>
    <item>
      <title>How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51558#M6592</link>
      <description>&lt;DIV&gt;We are working on reading mail content which has a table information. I use MS Outlook VBO, Get retrieved items method to read the mail content. Anyone has succeeded in extracting table from HTML mail body?&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Raghunandan P G&lt;BR /&gt;Lead&lt;BR /&gt;Fidelity&lt;BR /&gt;Bangalore&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2021 07:00:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51558#M6592</guid>
      <dc:creator>RaghunandanP_G</dc:creator>
      <dc:date>2021-08-25T07:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51559#M6593</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/18107"&gt;@RaghunandanP_G&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;What problem are you having? I've been able to use the actions on the Outlook VBO to retrieve the body of received emails in HTML format.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25984.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/26120i6AAF177D78B2424F/image-size/large?v=v2&amp;amp;px=999" role="button" title="25984.png" alt="25984.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Once you have the HTML it's pretty much an exercise in parsing text. There are a few ways you can do that. You can go old school and just use string parsing to find the start and end tags of the table data and pull it out. Alternatively, you should be able to load the body into an XML parser, as I believe Outlook creates XHTML as opposed the plain HTML, and parse it using XPath.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Aug 2021 11:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51559#M6593</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2021-08-25T11:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51560#M6594</link>
      <description>Curious to know the type of emails you are trying to read. I can read everything but the notification emails (like delivery notification, meeting request accepted etc) using the standard VBO.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vivek Goel&lt;BR /&gt;Winners of "The" RPACULT 2020&lt;BR /&gt;&lt;A href="https://rpatools.com/2020/11/the-rpacult-2020-winners/" target="test_blank"&gt;https://rpatools.com/2020/11/the-rpacult-2020-winners/&lt;/A&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Aug 2021 13:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51560#M6594</guid>
      <dc:creator>vivek.kumar.goel</dc:creator>
      <dc:date>2021-08-26T13:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51561#M6595</link>
      <description>Hi Vivek,&lt;BR /&gt;&lt;BR /&gt;GetReportItem action was recently added into the MS Outlook VBO to read delivery notification. It is available on DX.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Shashank Kumar&lt;BR /&gt;DX Integrations Partner Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;Singapore&lt;BR /&gt;+6581326707&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Aug 2021 04:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51561#M6595</guid>
      <dc:creator>shashank.kumar280</dc:creator>
      <dc:date>2021-08-27T04:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51562#M6596</link>
      <description>&lt;P&gt;​Hello,&lt;BR /&gt;I previously wrote such an action within my MS Outlook VBO I hope it helps.&lt;/P&gt;
&lt;P&gt;If the table you are trying to read is always in the same format (maybe a table that your robot generates in the runtime) you can reverse calculate a collection from html body. I did this in one of my processes. You can use regex to get values that are in between &amp;lt;td&amp;gt; &amp;lt;/td&amp;gt; and count the rows and columns (by counting the occurences of &amp;lt;tr&amp;gt; &amp;lt;th&amp;gt; tags) then dynamically create a collection with that info.&lt;BR /&gt;Hope it helps&lt;BR /&gt;Best, &lt;BR /&gt;Baris Karakas&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Barış Karakaş&lt;BR /&gt;Process performance specialist&lt;BR /&gt;TEB&lt;BR /&gt;Europe/Istanbul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Aug 2021 12:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51562#M6596</guid>
      <dc:creator>BKarakas94</dc:creator>
      <dc:date>2021-08-31T12:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51563#M6597</link>
      <description>&lt;SPAN&gt;If you are getting the body in html format then based on the string operation you can able to fetch the table data.&lt;BR /&gt;eg.&lt;BR /&gt;if html mail contains html table code like,&lt;/SPAN&gt;&lt;BR /&gt;
&lt;DIV class="bbCodeBlock bbCodeBlock--screenLimited bbCodeBlock--code"&gt;
&lt;DIV class="bbCodeBlock-title"&gt;HTML:&lt;/DIV&gt;
&lt;DIV class="bbCodeBlock-content" dir="ltr"&gt;
&lt;PRE class="bbCodeCode  language-html" dir="ltr" data-xf-init="code-block" data-lang="html"&gt;&lt;CODE&gt;&amp;lt;table id="t01"&amp;gt;
  &amp;lt;tr&amp;gt;
    &amp;lt;th&amp;gt;Firstname&amp;lt;/th&amp;gt;
    &amp;lt;th&amp;gt;Lastname&amp;lt;/th&amp;gt;
    &amp;lt;th&amp;gt;Age&amp;lt;/th&amp;gt;
  &amp;lt;/tr&amp;gt;
  &amp;lt;tr&amp;gt;
    &amp;lt;td&amp;gt;Eve&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;Jackson&amp;lt;/td&amp;gt;
    &amp;lt;td&amp;gt;94&amp;lt;/td&amp;gt;
  &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;SPAN&gt;then just using string operation fetch the data from td and tr tag as per your requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Vipul Tiwari&lt;BR /&gt;Senior Process Simplification and Optimization Designer(Solutions Architect)&lt;BR /&gt;Fidelity International&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2021 06:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51563#M6597</guid>
      <dc:creator>EVIPUTI</dc:creator>
      <dc:date>2021-09-01T06:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51564#M6598</link>
      <description>Hello,&lt;BR /&gt;I am also sharing my code that reverse calculates a datatable from very unformated simple &amp;lt;table&amp;gt; tags. Hope it helps. Copy and paste this code to the global code&lt;BR /&gt;You can use this in any code stage like shown:&lt;BR /&gt;&lt;BR /&gt;string strVal = "&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Harry&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Potter&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;12&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1994&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;James&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Hetfield&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;30&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1969&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Kirk&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;Hammet&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;87&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;1990&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;";&lt;BR /&gt;DataTable dt = reverseTableTag(strVal);&amp;nbsp;&lt;BR /&gt;//dt is your collection output&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Barış Karakaş&lt;BR /&gt;Process performance specialist&lt;BR /&gt;TEB&lt;BR /&gt;Europe/Istanbul&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2021 07:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/51564#M6598</guid>
      <dc:creator>BKarakas94</dc:creator>
      <dc:date>2021-09-01T07:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/110781#M49920</link>
      <description>&lt;P&gt;I am trying to read the table from email body using Outlook VBO. Unable to extract table data. Need assistance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 07:08:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/110781#M49920</guid>
      <dc:creator>keerthi03</dc:creator>
      <dc:date>2024-05-23T07:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract table from HTML Mail body!!!</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/110785#M49923</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/58549"&gt;@keerthi03&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you please share some more details as in what exactly is the issue. Are you not able to get the HTML table content itself or do you have problems while parsing the same. For parsing the content, like already people have suggested here you can use string manipulation or simply have some sort of a regular expression which can be used in a loop or the expression itself can identify patterns.&lt;/P&gt;&lt;P&gt;If you can share a bit on what exactly is the issue and how the HTML body looks like if you are getting one, then we can dig more into the same.&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;NOTE: If you are sharing screenshot, please ensure no confidential data is present in the same.&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 07:57:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-Extract-table-from-HTML-Mail-body/m-p/110785#M49923</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2024-05-23T07:57:04Z</dc:date>
    </item>
  </channel>
</rss>

