<?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 Leftover documents after conversion in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139136#M37243</link>
    <description>&lt;P&gt;I'm trying to establish some import/conversion automation for newly added documents, but struggle with document duplication.&lt;/P&gt;&lt;P&gt;Users place documents into a site directory via WEBDAV or FTP, where they shall be transformed to PDF automatically. With a folder rule using "transform and copy content" action, this was quite straight forward.&lt;/P&gt;&lt;P&gt;However, documents are duplicated now, because the transformation creates a new (PDF) document, but does not remove the uploaded original. This somehow sounds like a no-brainer, but so far, I was not able to find a solution - neither here nor in Alfresco itself.&lt;/P&gt;&lt;P&gt;Any hints how to achieve this? Ideally without programming completely new actions...&lt;/P&gt;&lt;P&gt;(Platform: ACS 6.2 GA)&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 09:49:03 GMT</pubDate>
    <dc:creator>joergd</dc:creator>
    <dc:date>2021-01-29T09:49:03Z</dc:date>
    <item>
      <title>Leftover documents after conversion</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139136#M37243</link>
      <description>&lt;P&gt;I'm trying to establish some import/conversion automation for newly added documents, but struggle with document duplication.&lt;/P&gt;&lt;P&gt;Users place documents into a site directory via WEBDAV or FTP, where they shall be transformed to PDF automatically. With a folder rule using "transform and copy content" action, this was quite straight forward.&lt;/P&gt;&lt;P&gt;However, documents are duplicated now, because the transformation creates a new (PDF) document, but does not remove the uploaded original. This somehow sounds like a no-brainer, but so far, I was not able to find a solution - neither here nor in Alfresco itself.&lt;/P&gt;&lt;P&gt;Any hints how to achieve this? Ideally without programming completely new actions...&lt;/P&gt;&lt;P&gt;(Platform: ACS 6.2 GA)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 09:49:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139136#M37243</guid>
      <dc:creator>joergd</dc:creator>
      <dc:date>2021-01-29T09:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Leftover documents after conversion</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139137#M37244</link>
      <description>&lt;P&gt;Instead of using the default (dummy) "transform and copy content" action rule, you could create a script which simply does "transform and udpate content" on the file that was uploaded to avoid the duplication. Such a script can be created in the "Data Dictionary/Scripts" folder within Alfresco, and used via the "Execute Script" folder rule action. But it requires some basic programming ability.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 13:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139137#M37244</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-01-29T13:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Leftover documents after conversion</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139138#M37245</link>
      <description>&lt;P&gt;Thanks for that helpful reply and pointing me in the right direction.&lt;/P&gt;&lt;P&gt;Regarding the "required programming abilities", I would consider myself quite experienced within general Java development. However, Alfresco is completely new to me, and I've trouble identifying the right spots to achieve the wanted solution.&lt;/P&gt;&lt;P&gt;Is there any place you could point me, where I would find "similar" scripts, that I could use as a starter?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 17:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139138#M37245</guid>
      <dc:creator>joergd</dc:creator>
      <dc:date>2021-01-29T17:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Leftover documents after conversion</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139139#M37246</link>
      <description>&lt;P&gt;Ok, figured it out. A simple script like this, already does the job:&lt;/P&gt;&lt;PRE&gt;var transformedNode = document.transformDocument("application/pdf");
if (transformedNode.exists()) {
  document.remove();
}&lt;/PRE&gt;&lt;P&gt;Quite simple, but if you're new to Alfresco, this puts you for a challenge.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 12:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139139#M37246</guid>
      <dc:creator>joergd</dc:creator>
      <dc:date>2021-01-31T12:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Leftover documents after conversion</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139140#M37247</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/84444"&gt;@joergd&lt;/A&gt;&amp;nbsp;&amp;amp; welcome to Alfresco,&lt;/P&gt;
&lt;P&gt;Great news you've found a solution &amp;amp; thanks for updating us with the code example - really helpful to other users.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 11:05:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/leftover-documents-after-conversion/m-p/139140#M37247</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-02-01T11:05:01Z</dc:date>
    </item>
  </channel>
</rss>

