Tony Chatfield1
Kilo Patron

Hi, I think that JSONParser() is legacy and so not available in a scoped app,
which will be why it works in a background script.

Maybe try something like

https://developer.servicenow.com/app.do#!/api_doc?v=newyork&id=JSONScopedAPI

var response = request.execute();
var parser = new global.JSON().decode(response.getBody());

 

View solution in original post