<?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 Crafting a script to run from a rule in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167034#M120591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var destFolder = companyhome.childByNamePath("Root/Pre_Press");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;which for me was fine, but the end users that are uploading the files that get moved to that location by the end of the script don't have access to the company home.&amp;nbsp; They do have access to the Pre_Press folder, so I went to switch over to using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var destFolder = findNode("workspace://SpacesStore/2f35be55-1c52-11dd-a1fc-a1ed4a8603ab");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This however didn't seem to work.&amp;nbsp; Am I doing it wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 21:27:41 GMT</pubDate>
    <dc:creator>jkrengel</dc:creator>
    <dc:date>2008-05-14T21:27:41Z</dc:date>
    <item>
      <title>Crafting a script to run from a rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167034#M120591</link>
      <description>I was using var destFolder = companyhome.childByNamePath("Root/Pre_Press");‍which for me was fine, but the end users that are uploading the files that get moved to that location by the end of the script don't have access to the company home.&amp;nbsp; They do have access to the Pre_Press folder, so I went to</description>
      <pubDate>Wed, 14 May 2008 21:27:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167034#M120591</guid>
      <dc:creator>jkrengel</dc:creator>
      <dc:date>2008-05-14T21:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Crafting a script to run from a rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167035#M120592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That code looks ok to me. Are you sure your users have write access to the destination folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide the error that is generated by your script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:12:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167035#M120592</guid>
      <dc:creator>frederick</dc:creator>
      <dc:date>2008-05-15T08:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Crafting a script to run from a rule</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167036#M120593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's the error I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Please correct the errors below then click OK. &lt;BR /&gt;&lt;BR /&gt;A system error happened during the operation: Transaction didn't commit: Invalid company home path: /app:company_home - found: 0&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I assumed it referred to the first line of code.&amp;nbsp; I haven't actually debugged it, but it's the only piece of code in the entire script that references the company_home location.&amp;nbsp; Which I find strange since I figured if I referenced the destination node directly it should not care about the company home.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:39:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/crafting-a-script-to-run-from-a-rule/m-p/167036#M120593</guid>
      <dc:creator>jkrengel</dc:creator>
      <dc:date>2008-05-15T14:39:36Z</dc:date>
    </item>
  </channel>
</rss>

