<?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 Any tips on getting the content of a Collection into the body of an email? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60603#M14037</link>
    <description>&lt;P&gt;I attach an Excel spreadsheet to my process completion output reports which has the details of the run taken from the queue.&amp;nbsp; The Excel spreadsheet is created by pulling Queue data into a Collection and then writing it to Excel.&amp;nbsp; It could have any number of rows, depending on what was in the queue.&lt;/P&gt;
&lt;P&gt;My users have asked if the content of this report could be included in the &lt;SPAN style="text-decoration: underline;"&gt;body &lt;/SPAN&gt;of the email rather than as an attachment.&lt;/P&gt;
&lt;P&gt;Queue item 1 - Completed&lt;/P&gt;
&lt;P&gt;Queue item 2 - Completed&lt;/P&gt;
&lt;P&gt;Queue item 3 - Exception, invalid input&lt;/P&gt;
&lt;P&gt;Queue item 4 - Completed&lt;/P&gt;
&lt;P&gt;Queue item ... etc.&lt;/P&gt;
&lt;P&gt;I can't see any obvious (or even non-obvious) ways to do this.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Nov 2023 21:47:00 GMT</pubDate>
    <dc:creator>JeremyRTDean</dc:creator>
    <dc:date>2023-11-09T21:47:00Z</dc:date>
    <item>
      <title>Any tips on getting the content of a Collection into the body of an email?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60603#M14037</link>
      <description>&lt;P&gt;I attach an Excel spreadsheet to my process completion output reports which has the details of the run taken from the queue.&amp;nbsp; The Excel spreadsheet is created by pulling Queue data into a Collection and then writing it to Excel.&amp;nbsp; It could have any number of rows, depending on what was in the queue.&lt;/P&gt;
&lt;P&gt;My users have asked if the content of this report could be included in the &lt;SPAN style="text-decoration: underline;"&gt;body &lt;/SPAN&gt;of the email rather than as an attachment.&lt;/P&gt;
&lt;P&gt;Queue item 1 - Completed&lt;/P&gt;
&lt;P&gt;Queue item 2 - Completed&lt;/P&gt;
&lt;P&gt;Queue item 3 - Exception, invalid input&lt;/P&gt;
&lt;P&gt;Queue item 4 - Completed&lt;/P&gt;
&lt;P&gt;Queue item ... etc.&lt;/P&gt;
&lt;P&gt;I can't see any obvious (or even non-obvious) ways to do this.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jeremy Dean&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2023 21:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60603#M14037</guid>
      <dc:creator>JeremyRTDean</dc:creator>
      <dc:date>2023-11-09T21:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Any tips on getting the content of a Collection into the body of an email?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60604#M14038</link>
      <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firstly,&lt;/P&gt;
&lt;P&gt;Set up a data item that initializes the table. Assuming this is called "[Message]" For example,&amp;nbsp;&lt;BR /&gt;&amp;lt;table border='1' cellpadding='3' cellspacing='0' style='width:600px'&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;Queue Item&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;th&amp;gt;Status&amp;lt;/th&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;BR /&gt;This sets up the appearance and headers of your table.&lt;/P&gt;
&lt;P&gt;Create a logic that captures the completed and exception items in your Work Queue. Loop through the items to create a Work Queue Collection Report. Let's say this collection report is called "[Report]".&lt;/P&gt;
&lt;P&gt;Create another loop that collects the information from [Report] collection to create a table for your email message. Your example calculation stage in the loop shall look like this.&lt;/P&gt;
&lt;P&gt;[Message]&amp;amp;"&amp;lt;tr&amp;gt;"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;amp;"&amp;lt;td&amp;gt;"&amp;amp;[Report.Key]&amp;amp;"&amp;lt;/td&amp;gt;"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;amp;"&amp;lt;td&amp;gt;"&amp;amp;[Report.Status]&amp;amp;"&amp;lt;/td&amp;gt;"&lt;BR /&gt;&amp;lt;/tr&amp;gt;"&lt;BR /&gt;This adds a row to your table and closes that row as well.&lt;/P&gt;
&lt;P&gt;Finally, after the end of the loop. You will close your table using another calculation stage.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Message]&amp;amp;"&amp;lt;/table&amp;gt;"&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Renz&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Renz Carlo Dela Cruz&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2023 22:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60604#M14038</guid>
      <dc:creator>RenzDelaCruz</dc:creator>
      <dc:date>2023-11-09T22:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Any tips on getting the content of a Collection into the body of an email?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60605#M14039</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;I normally use it in the following way:&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="17223.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/17378iA90852B419A939F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="17223.png" alt="17223.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Get Report: Gets report and includes it in a collection.&lt;/P&gt;
&lt;P&gt;Start Report: Creates the Header and loads CSS information that will be used.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;html lang='pt-br'&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;head&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;meta charset='UTF-8' /&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;meta name='viewport' content='width=device-width, initial-scale=1.0' /&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;meta http-equiv='Content-Type' content='text/html charset=UTF-8' /&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;style&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; #reportExemple {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; font-weight: bolder;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/style&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;/head&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div id='reportExemple'&amp;gt;&amp;lt;/div&amp;gt;&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Get current rows: Checks if items exist.&lt;BR /&gt;Decision: If there are no items, send a personalized report "no items to process&lt;BR /&gt;Loop: For each for each line in the collection&lt;BR /&gt;Insert item: Loads a new item into the body by concatenating Header + body&lt;BR /&gt;Data Item Body: [Report] = [Report]&amp;amp; [Item]&lt;BR /&gt;End Report: Closes the report tag, concatenating the result&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;You can have a replace structure in a data item base for example, customization is at your discretion.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="vertical-align: inherit;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer Tech Leader&lt;BR /&gt;Bridge Consulting&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 21:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Any-tips-on-getting-the-content-of-a-Collection-into-the-body-of/m-p/60605#M14039</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2023-11-11T21:23:00Z</dc:date>
    </item>
  </channel>
</rss>

