As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi guys,
I want to know how to add JavaScript code to a file rule. My main idea is to execute a post method to send data to other software. I already have everything configured but it doesn't recognize the JavaScript code. I am following these steps. 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.
Is there a simpler tutorial or another way to do it? I thank you for all your collaboration. Thank you.
From https://docs.alfresco.com/community/references/rule-actions.html
https://docs.alfresco.com/community/concepts/API-JS-intro.html
Hi @angelborroy
Thank you very much for you helping..
I added my file in Data Dictionary/Scripts also Also I configure the rule to run my JS file. 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. I would like to know how I have to add the JS code in my file rules. And if possible a use case.