HI,
Yes, you can!
By using a javascript code from the action repository.
Basic code is like this:
var url = '' // the URL to be called. var http = new HttpClientRequest(url); //use parameters below if login is requiered. //http.header["UserName"] = strLogin; //http.header["Password"] = strPwd; //Set header type http.header["Content-Type"] = "application/xml"; http.method = "GET"; http.execute(); //pull the response as text. var httpResponse = http.response.body.toString() //Process the response from here. |
Please note that the URL you want to connect to is probably not whitelisted....
This is because the default list of URLs that can be called by JavaScript codes (workflows, etc.) is limited (as a security meas.
ure) To allow a new URL, the administrator needs to reference a new urlPermission in the serverConf.xml file.
Kind regards,
Menno