We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

When do outbound REST calls go via ecc_queue

DickH
Tera Guru

Hi,

I'm trying to figure out when outbound REST calls are sent via the ecc queue. I used the canned Rest service from the sandbox.

I tried this script in a UI action and was expecting to see the results in the ecc queue table but I didn't see anything

try {

      var r = new sn_ws.RESTMessageV2('Yahoo Finance', 'get');

      r.setStringParameter('symbol', 'IBM');

      var response = r.execute();

      var responseBody = response.getBody();

      var httpStatus = response.getStatusCode();

} catch (ex) {

      var message = ex.getMessage();

}

I've noticed that outbound calls via Mid-server are visible in the ecc_queue.

Thanks,

D.

5 REPLIES 5

Hi,


You need to use r.executeAsync(). Here's a complete example: RESTMessageV2 - executeAsync()  


Best Regards,


Siri




Please select Like/Helpful/Correct if this helps