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,
I read many posts about this problem but I didn't found solution.
I know that
remote is not available
and I cannot use
XMLHttpRequest()
What can I do to call REST API in rule executed script?
Please write a snippet of code.
Thank in advance.
In Rule Script, the remote object is not available. You have to manage by using available objects or have to write an action.
Document, CompanyHome, siteService etc objects are available.
document.save();
var targetNode = companyhome.childByNamePath(newtargectDir);
var siteNode = siteService.getSite(site);site = siteNode.title;
Thank you but is not usefull at all.
Please tell me how to achieve calling external REST API from rule script. Either using available object or action.
What action do you mean?
Which REST API are you referring to? The Alfresco REST API or some third-party REST API?
Hi Jeff, I also have the same challenge.
For example I want to call the following RESTful API from a rule JavaScript file, how I can do that ? :
http://localhost:8080/alfresco/service/api/workflow-instances
I use Alfresco Community v 5.1 (f)
Hi Jeff,
I want to call third party REST API. Flowable in my case.