When do outbound REST calls go via ecc_queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2015 07:46 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2016 02:57 PM
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