<?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 Sending attachment from online service in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Sending-attachment-from-online-service/m-p/96829#M44970</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am new to blue prism and I am running into an issue that I need assistance one.&amp;nbsp; What I am trying to do is log into our financial database process a report and have it emailed as an attachment.&amp;nbsp; The attachment is created in .xlsx format and placed into the download folder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have the report creation done in the template but I am running into the issue where the attachment is not being attached.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The report file name is Investment Value_2022-12-12h10m30s42.xlsx&amp;nbsp; &amp;nbsp; with everything after the investment Value is different.&lt;BR /&gt;&lt;BR /&gt;I tried using get files with the CSV "Investment Value*.xlsx" but that had the collection blank.&amp;nbsp; &amp;nbsp;I made a collection of the file path and put [File_Path]&amp;amp;"Investment Value*.xlsx" but I get the error that file was not found.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using the Microsoft Outlook VBO as the process to email.&amp;nbsp; To ensure I had that set up correctly I remove attachments and everything runs and email is sent.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="direction: rtl;"&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 12 Dec 2022 17:35:41 GMT</pubDate>
    <dc:creator>PatrickPerea</dc:creator>
    <dc:date>2022-12-12T17:35:41Z</dc:date>
    <item>
      <title>Sending attachment from online service</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-attachment-from-online-service/m-p/96829#M44970</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am new to blue prism and I am running into an issue that I need assistance one.&amp;nbsp; What I am trying to do is log into our financial database process a report and have it emailed as an attachment.&amp;nbsp; The attachment is created in .xlsx format and placed into the download folder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have the report creation done in the template but I am running into the issue where the attachment is not being attached.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The report file name is Investment Value_2022-12-12h10m30s42.xlsx&amp;nbsp; &amp;nbsp; with everything after the investment Value is different.&lt;BR /&gt;&lt;BR /&gt;I tried using get files with the CSV "Investment Value*.xlsx" but that had the collection blank.&amp;nbsp; &amp;nbsp;I made a collection of the file path and put [File_Path]&amp;amp;"Investment Value*.xlsx" but I get the error that file was not found.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am using the Microsoft Outlook VBO as the process to email.&amp;nbsp; To ensure I had that set up correctly I remove attachments and everything runs and email is sent.&lt;BR /&gt;&lt;BR /&gt;Any help would be appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="direction: rtl;"&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Dec 2022 17:35:41 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-attachment-from-online-service/m-p/96829#M44970</guid>
      <dc:creator>PatrickPerea</dc:creator>
      <dc:date>2022-12-12T17:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sending attachment from online service</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Sending-attachment-from-online-service/m-p/96830#M44971</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/3543"&gt;@PatrickPerea&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You won't be able to use wildcards when passing the file information into the Outlook VBO. You must provide the actual fully qualified path and file name. If the name of the file changes, you'll need to add some logic to your process to determine the name of the file. You can use the &lt;STRONG&gt;Utility - File Management&lt;/STRONG&gt; VBO to work with files and file paths. ​As an example, you could use the Get Files action to return a Collection of files in the folder that match your search criteria (ex. &lt;SPAN&gt;Investment Value_*.xlsx). From there, you would need to have logic to decide which of those files actually need to be attached to the email and then you would append each fully qualified file name/path onto a Text data item (each file is separate by a semicolon if there are multiple). That Text data item is what you pass into the &lt;EM&gt;&lt;STRONG&gt;Send Email&lt;/STRONG&gt;&lt;/EM&gt; action for the attachments.&lt;BR /&gt;&lt;BR /&gt;Here's an example of the logic for getting file names and adding them to a Text data item. In this case I'm checking a folder where I have 3 different .XLSX files. The names of the files are &lt;STRONG&gt;DataInsurance01.xlsx&lt;/STRONG&gt;, &lt;STRONG&gt;DataInsurance02.xlsx&lt;/STRONG&gt;, and &lt;STRONG&gt;DataInsurance03.xlsx&lt;/STRONG&gt;. In this example I just want the file named DataInsurance01.xlsx to be used as an attachment, so I use a Decision stage (inside of a loop) to check the name of the files that were returned from &lt;EM&gt;&lt;STRONG&gt;Get Files&lt;/STRONG&gt;&lt;/EM&gt;. That Decision stages uses the EndsWith function to see if the current file name ends with "01.xlsx". If it does, the full path of the file is added to the Text data item named &lt;STRONG&gt;Attachments&lt;/STRONG&gt;. Then I can pass that into the Outlook VBO.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35179.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35242i6A0913EB657CAB5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="35179.png" alt="35179.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35180.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35241i2CBD0037CCDB5539/image-size/large?v=v2&amp;amp;px=999" role="button" title="35180.png" alt="35180.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35181.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35243iB9DFD232C108EE37/image-size/large?v=v2&amp;amp;px=999" role="button" title="35181.png" alt="35181.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35182.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35246i42EDB040015A3C5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="35182.png" alt="35182.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Eric&lt;/SPAN&gt;</description>
      <pubDate>Tue, 13 Dec 2022 22:56:22 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Sending-attachment-from-online-service/m-p/96830#M44971</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-12-13T22:56:22Z</dc:date>
    </item>
  </channel>
</rss>

