Hello!
I was reading interesting and very helpful blog article by @danny-dainton related to moment.js and I have problem with my pre-request script.
What am I doing wrong here? Why “created_before” is not defined?
Hello!
I was reading interesting and very helpful blog article by @danny-dainton related to moment.js and I have problem with my pre-request script.
What am I doing wrong here? Why “created_before” is not defined?
You’re trying to log out local variables created_before
/ created_after
but these are not defined.
As you’re creating environment variables, you would need to reference those by using:
console.log(pm.environment.get('created_before'))
Similar to how you are doing this on line 12 of the script.