cancel
Showing results for 
Search instead for 
Did you mean: 

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

pnature
Star Contributor
Star Contributor

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.

10 REPLIES 10

sp2
Elite Collaborator
Elite Collaborator

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