<?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 Best way to create a list of CSVs to attach to an email in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2885#M1336</link>
    <description>&lt;P&gt;I've looked through lists by workato, variables by workato, files by workato and can't find a great way to take all the CSVs created in a repeat step/loop (CSV Parser by workato) and add each of them to an email (as attachments).  Any advice?&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 21:29:29 GMT</pubDate>
    <dc:creator>matt-kruzicki</dc:creator>
    <dc:date>2022-05-17T21:29:29Z</dc:date>
    <item>
      <title>Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2885#M1336</link>
      <description>&lt;P&gt;I've looked through lists by workato, variables by workato, files by workato and can't find a great way to take all the CSVs created in a repeat step/loop (CSV Parser by workato) and add each of them to an email (as attachments).  Any advice?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 21:29:29 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2885#M1336</guid>
      <dc:creator>matt-kruzicki</dc:creator>
      <dc:date>2022-05-17T21:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2886#M1337</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;If you want to add each individual CSV to the same email, you'll have to add the CSV file content and filenames to a new list within your loop to create a list of all attachments. Then outside of the loop, you can feed the list of attachments to the "Email by Workato" connector, and it will attach all items in the list individually. If you want to send a one email per CSV, you can move the emailer inside the loop.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Also, instead of attaching each CSV individually, you can use the "Files by Workato" connector to create a single zip file containing all of the CSVs. Set the File List input mode (click the three dots on the right of the File List section) of the connector to "Dynamic list" and feed it the list of attachments. It will output a zip file which you can then attach to the email and you're all set.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;-Gary&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 22:43:38 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2886#M1337</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2022-05-17T22:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2887#M1338</link>
      <description>&lt;P&gt;Thanks for the help, Gary! I guess I'm stuck on what workato connector to use and how/what field types to use for creating/accumulating the CSV files to that new list.  Variables by workato allows arrays and objects but Lists by workato does not.  I'd think these CSVs would need to be of the 'Array' datatype?  Anyways, that's where I'm getting hung up as I don't see how to build that list of CSV files.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 22:53:54 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2887#M1338</guid>
      <dc:creator>matt-kruzicki</dc:creator>
      <dc:date>2022-05-17T22:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2888#M1339</link>
      <description>&lt;P&gt;If you already have the CSV data formatted as CSV (meaning it's not another data type you need to convert to CSV), then you can store it in any string/text field of a list or variable. You don't need to store it as any specific data type, or break it up further. It's possible to store tens of thousands of lines of CSV as a single logger.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;For example, if you made a logger and added "1,2,3", this data is technically aready "CSV formated text", it's just stored as a string type. You could feed that logger into a CSV parser and it would work fine. Or you could do "1,2,3".encode_base64 (or [logger].encode_base64) to attach it to an email. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Are you trying to make a single CSV file, or are you trying to make many individual CSVs? &lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 May 2022 23:11:34 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2888#M1339</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2022-05-17T23:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2889#M1340</link>
      <description>&lt;P&gt;Multiple CSVs all as separate attachments.  I did end up getting it to work just using the String datatype.  Much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 23:22:15 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/2889#M1340</guid>
      <dc:creator>matt-kruzicki</dc:creator>
      <dc:date>2022-05-17T23:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/5502#M2421</link>
      <description>&lt;P&gt;Can you share how?&amp;nbsp; I have a need to do the same thing: attach all PDFs in a particular directory to a single email as a bunch of attachments, and I can't quite figure it out.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 17:56:41 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/5502#M2421</guid>
      <dc:creator>kderby-cck</dc:creator>
      <dc:date>2023-10-27T17:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to create a list of CSVs to attach to an email</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/5507#M2424</link>
      <description>&lt;P&gt;If you have many PDFs to send, you have to first put them into a list. The list should have two pieces of data:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The file data OR a file URL&lt;/LI&gt;&lt;LI&gt;A filename (but if not you can always construct one)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If they're already in a list with this data, then you're halfway there.&lt;/P&gt;&lt;P&gt;If they're not in a list, then you need to make a list to add them into, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_0-1698434081676.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/790iEC8F631B52DBF9F5/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_0-1698434081676.png" alt="gary1_0-1698434081676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then add each of your PDFs to this list. There are a bunch of different ways to do this, but I'd need to know more about your source data.&lt;/P&gt;&lt;P&gt;Once they're in a list, you map this list into the email action, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gary1_1-1698434340747.png" style="width: 400px;"&gt;&lt;img src="https://systematic.workato.com/t5/image/serverpage/image-id/791i0A4273B90AC511AD/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gary1_1-1698434340747.png" alt="gary1_1-1698434340747.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 19:25:30 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/best-way-to-create-a-list-of-csvs-to-attach-to-an-email/m-p/5507#M2424</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2023-10-27T19:25:30Z</dc:date>
    </item>
  </channel>
</rss>

