Hello,
At the end of March I started noticing that I get the following error message when triggering collections via webhook and then try to access the payload that I sent to the webhook via
So I sent a request and a payload to
https://newman-api.getpostman.com/run/XXXXXXXX
and then try to access that payload with:
var json = JSON.parse(globals.previousRequest).data;
In the log I see this error message:
Using “globals” is deprecated. Use “pm.globals” instead
I googled and searched in this forum, but strangely couldn’t find anyone discussing this.
I already tried replacing globals with pm.globals but then I get this error message:
JSONError: Unexpected token u in JSON at position 0