<?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: Javascript to move file into folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293824#M246954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var strDestFolder ="sites/KD/IT/SOP/";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var objDestFolder = companyhome.childByNamePath(strDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.move(objDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the destination folder is not the same you may generate a path variable from eg the node (document) name. won´t work if the destination folder does not exist or you don´t have correct permissions (needing delete in the source path).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kr &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josef&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 09:21:04 GMT</pubDate>
    <dc:creator>cibex</dc:creator>
    <dc:date>2016-06-14T09:21:04Z</dc:date>
    <item>
      <title>Javascript to move file into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293821#M246951</link>
      <description>Hi All,I have recently deployed alfresco(5.1.0 community edition) to manage our internal documents and it works great.I would like to implement a hot folder where once a file is uploaded to the folder it is moved to a folder with the same title as the file.What I mean is if I upload a file with a ti</description>
      <pubDate>Thu, 14 Apr 2016 18:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293821#M246951</guid>
      <dc:creator>dbzmkl</dc:creator>
      <dc:date>2016-04-14T18:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript to move file into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293822#M246952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/5.1/references/API-JS-move.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/5.1/references/API-JS-move.html&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;Here&amp;lt;/a&amp;gt; is the doc on the "move" method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your folder rule you'll automatically get a variable named document. So if you can use other calls to get a handle to the folder node you want to move it to, you can call that move function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like you'll also want to create a new folder to place that document in. So you'll want to call createFolder on the parent to create the new folder before you call move on the document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 19:57:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293822#M246952</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-04-14T19:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript to move file into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293823#M246953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var strDestFolder ="sites/KD/IT/SOP/";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var objDestFolder = companyhome.childByNamePath(strDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.move(objDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the destination folder is not the same you may generate a path variable from eg the node (document) name. won´t work if the destination folder does not exist or you don´t have correct permissions (needing delete in the source path).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kr &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josef&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 08:54:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293823#M246953</guid>
      <dc:creator>cibex</dc:creator>
      <dc:date>2016-06-14T08:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript to move file into folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293824#M246954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;var strDestFolder ="sites/KD/IT/SOP/";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var objDestFolder = companyhome.childByNamePath(strDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;document.move(objDestFolder);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if the destination folder is not the same you may generate a path variable from eg the node (document) name. won´t work if the destination folder does not exist or you don´t have correct permissions (needing delete in the source path).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kr &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josef&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 09:21:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-to-move-file-into-folder/m-p/293824#M246954</guid>
      <dc:creator>cibex</dc:creator>
      <dc:date>2016-06-14T09:21:04Z</dc:date>
    </item>
  </channel>
</rss>

