How to call REST API of remote service in rule executed script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:41 AM
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.
Labels:
- Labels:
-
Alfresco Content Services
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 07:28 AM
You can not directly call third party api from script.
You can create custom root object usign java and in java you can write code to call rest api.
https://spalyukh.blogspot.com/2015/09/custom-root-scope-object-js-api-service.html
