<?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: Do I add JavaScript code to a file rule? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110647#M30940</link>
    <description>&lt;P&gt;From &lt;A href="https://docs.alfresco.com/community/references/rule-actions.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/references/rule-actions.html&lt;/A&gt;&lt;/P&gt;
&lt;TABLE id="rule-actions__table_fkf_zvg_ps" class="table" summary="" frame="border" rules="all" cellspacing="0" cellpadding="4" border="1"&gt;
&lt;TBODY class="tbody"&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry" valign="top"&gt;&lt;SPAN class="ph uicontrol"&gt;Execute script&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="entry" valign="top"&gt;Runs a custom JavaScript script from the Data Dictionary/Scripts folder. There are a number of sample scripts available. The list can vary depending on how &lt;SPAN class="ph"&gt;Alfresco Community Edition&lt;/SPAN&gt; is configured for your organization.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&lt;A href="https://docs.alfresco.com/community/concepts/API-JS-intro.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/concepts/API-JS-intro.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 06:57:11 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2020-05-15T06:57:11Z</dc:date>
    <item>
      <title>Do I add JavaScript code to a file rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110646#M30939</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I want to know how to add JavaScript code to a file rule.&amp;nbsp;My main idea is to execute a post method to send data to other software.&amp;nbsp;I already have everything configured but it doesn't recognize the JavaScript code.&amp;nbsp;I am following these steps.&amp;nbsp;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/call-external-class-by-javascript-in-rules-of-folder/td-p/795" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/call-external-class-by-javascript-in-rules-of-folder/td-p/795 but this is very difficult.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is there a simpler tutorial or another way to do it? I thank you for all your collaboration. Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:14:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110646#M30939</guid>
      <dc:creator>viperboys</dc:creator>
      <dc:date>2020-05-14T21:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Do I add JavaScript code to a file rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110647#M30940</link>
      <description>&lt;P&gt;From &lt;A href="https://docs.alfresco.com/community/references/rule-actions.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/references/rule-actions.html&lt;/A&gt;&lt;/P&gt;
&lt;TABLE id="rule-actions__table_fkf_zvg_ps" class="table" summary="" frame="border" rules="all" cellspacing="0" cellpadding="4" border="1"&gt;
&lt;TBODY class="tbody"&gt;
&lt;TR class="row"&gt;
&lt;TD class="entry" valign="top"&gt;&lt;SPAN class="ph uicontrol"&gt;Execute script&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD class="entry" valign="top"&gt;Runs a custom JavaScript script from the Data Dictionary/Scripts folder. There are a number of sample scripts available. The list can vary depending on how &lt;SPAN class="ph"&gt;Alfresco Community Edition&lt;/SPAN&gt; is configured for your organization.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;

&lt;P&gt;&lt;A href="https://docs.alfresco.com/community/concepts/API-JS-intro.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/concepts/API-JS-intro.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 06:57:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110647#M30940</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-05-15T06:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do I add JavaScript code to a file rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110648#M30941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for you helping..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added my file in&amp;nbsp;&lt;SPAN&gt;Data Dictionary/Scripts also Also I configure the rule to run my JS file.&amp;nbsp;My problem is that any JS command that I add to the JS file gives me error. For example. I add just console.log ("Work Fine"); and this gives me error.&amp;nbsp;I would like to know how I have to add the JS code in my file rules. And if possible a use case.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 14:11:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-add-javascript-code-to-a-file-rule/m-p/110648#M30941</guid>
      <dc:creator>viperboys</dc:creator>
      <dc:date>2020-05-15T14:11:07Z</dc:date>
    </item>
  </channel>
</rss>

