Is it possible to record if a RESTlet is called? ...
# suitescript
k
Is it possible to record if a RESTlet is called? CONTEXT I am attempting to mark a field on a purchase order if it was successfully called into another system.
s
Simplest thing would be to write a log right at the start of the restlet’s entry point function(s):
log.audit({ title: 'Request', details: JSON.stringify(request));
If the call was successfully made, you’ll see the log entry in the restlet script. Of coruse, that won’t help much if the call was made incorrectly, or using the wrong credentials, but then some kind of error would be going back to the calling client
k
Thank you for your advice, Scott. I'll experiment this solution.