<?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: club .csv and .txt files in to a single zip file in Adobe Campaign Classic Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539272#M15833</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17558027"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using below script,&lt;BR /&gt;execCommand('zip -r -j /sftp/my/path/myProject.zip /sftp/my/path/test_1.csv /sftp/my/path/test_2.txt');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;ParthaSarathy S&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 10:11:12 GMT</pubDate>
    <dc:creator>ParthaSarathy</dc:creator>
    <dc:date>2022-08-04T10:11:12Z</dc:date>
    <item>
      <title>club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463100#M15791</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are generating 2 different files using data extraction activity.&lt;BR /&gt;Data extraction 1 will create test_1.csv&lt;BR /&gt;Data extraction 2 will create test_2.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to club this test_1.csv and test_2.txt file as a single zip file 'myProject.zip' and need to send to SFTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LakshmiPravallika_0-1659000425761.png" style="width: 999px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/43617i1656C89129B6363C/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="LakshmiPravallika_0-1659000425761.png" alt="LakshmiPravallika_0-1659000425761.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly help us to achieve this!&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 09:29:51 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463100#M15791</guid>
      <dc:creator>LakshmiPravallika</dc:creator>
      <dc:date>2022-07-28T09:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463134#M15803</link>
      <description>&lt;P&gt;Hi Lakshmi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at the documentation below and let us know if there are any questions. Do combine and zip both files into a single zip will likely take some scripting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/docs/campaign-classic/using/getting-started/importing-and-exporting-data/managing-data-encryption-compression/zip-encrypt.html?lang=en" target="_blank"&gt;https://experienceleague.adobe.com/docs/campaign-classic/using/getting-started/importing-and-exporting-data/managing-data-encryption-compression/zip-encrypt.html?lang=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 12:49:14 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463134#M15803</guid>
      <dc:creator>Craig_Thonis</dc:creator>
      <dc:date>2022-07-28T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463144#M15805</link>
      <description>&lt;P&gt;Hi Thonis,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for providing me the link.But the documentation do not contain the steps to zip the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It only contain the steps to encrypt the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This doc doesn't help to achieve&amp;nbsp;my use case of combining 2 files and zipping them into a single file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:52:55 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/463144#M15805</guid>
      <dc:creator>LakshmiPravallika</dc:creator>
      <dc:date>2022-07-28T13:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539272#M15833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17558027"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using below script,&lt;BR /&gt;execCommand('zip -r -j /sftp/my/path/myProject.zip /sftp/my/path/test_1.csv /sftp/my/path/test_2.txt');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;ParthaSarathy S&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:11:12 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539272#M15833</guid>
      <dc:creator>ParthaSarathy</dc:creator>
      <dc:date>2022-08-04T10:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539273#M15834</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17381984"&gt;&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is working.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:13:50 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539273#M15834</guid>
      <dc:creator>LakshmiPravallika</dc:creator>
      <dc:date>2022-08-04T10:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: club .csv and .txt files in to a single zip file</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539274#M15835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;LI-USER uid="17381984"&gt;&lt;/LI-USER&gt;&amp;nbsp; and&amp;nbsp;&lt;LI-USER uid="17558027"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please restrain yourself to us execCommand when there is a JavaScript object to allow you to zip file.&lt;/P&gt;
&lt;P&gt;Although the execCommand is there, we don't like it to be used as there is no control on what can be executed and it has been perceived as a security concern.&lt;/P&gt;
&lt;P&gt;Please use ZipFile class instead and the getEntry&lt;/P&gt;
&lt;P&gt;&lt;A href="https://experienceleague.adobe.com/developer/campaign-api/api/m-ZipFile-ZipFile.html" target="_blank"&gt;https://experienceleague.adobe.com/developer/campaign-api/api/m-ZipFile-ZipFile.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;ANYTIME, you use a File class, make you invoke the dispose function to release the resources used during the file processing, failing to do so exposes you to run out of resources and will require a full service restart.&lt;/P&gt;
&lt;P&gt;execCommand works but is not recommended, ZipFile is the recommended approach.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Denis&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:19:10 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/club-csv-and-txt-files-in-to-a-single-zip-file/m-p/539274#M15835</guid>
      <dc:creator>Denis_Bozonnet</dc:creator>
      <dc:date>2022-08-04T10:19:10Z</dc:date>
    </item>
  </channel>
</rss>

