<?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 POST activity notification to an endpoint in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/post-activity-notification-to-an-endpoint/m-p/69667#M22945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;I am a newbie to Alfresco , I am trying to establish a HTTP POST to send activity notifications in a particular folder to our Mattermost chat group . I've tested it by running CURL and it works. but when it comes to Alfresco I was totally lost ,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;I wrote a couple of different scripts by using different methods but none of them work .&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;What I have done was : apply a rule to a particular folder , the rule is when there's a new folder or file added to the folder , execute the script&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Mattermost-test-v1.js or&amp;nbsp;Mattermost-test-v2.js&amp;nbsp; , this two scripts are doing the same thing just trying out different methods.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;The error message I received for Mattermost-test-v1.js is "remote is not defined" and&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Mattermost-test-v2.js is "http is not definded". I've been searching for a solution on Google without any result . Can someone please help .&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;The CURL commend that I'm using for testing is below :&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;this command is just an example , won't be able to provide the key here due to security reason . but it's exactly the same just with a different key .&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;curl -i -X POST -H 'Content-Type: application/json' -d '{"text": "Hello, this is some text\nThis is more text. :tada:"}'&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="http://" rel="nofollow noopener noreferrer" style="color: #1e88e5; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;{your-mattermost-site}/hooks/xxx-generatedkey-xxx&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Jun 2018 23:58:39 GMT</pubDate>
    <dc:creator>dennis_z</dc:creator>
    <dc:date>2018-06-12T23:58:39Z</dc:date>
    <item>
      <title>POST activity notification to an endpoint</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-activity-notification-to-an-endpoint/m-p/69667#M22945</link>
      <description>I am a newbie to Alfresco , I am trying to establish a HTTP POST to send activity notifications in a particular folder to our Mattermost chat group . I've tested it by running CURL and it works. but when it comes to Alfresco I was totally lost ,&amp;nbsp;I wrote a couple of different scripts by using differe</description>
      <pubDate>Tue, 12 Jun 2018 23:58:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-activity-notification-to-an-endpoint/m-p/69667#M22945</guid>
      <dc:creator>dennis_z</dc:creator>
      <dc:date>2018-06-12T23:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: POST activity notification to an endpoint</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-activity-notification-to-an-endpoint/m-p/69668#M22946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are using this JavaScript API:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/community/references/API-JS-rootscoped.html" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/community/references/API-JS-rootscoped.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no support to HTTP calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the easier way is to develop a behaviour in Java to send the communications to Mattermost.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 09:00:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-activity-notification-to-an-endpoint/m-p/69668#M22946</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2018-06-13T09:00:05Z</dc:date>
    </item>
  </channel>
</rss>

