Can we use pm.environment.set() and after that refers the value when run the collection using newman?

can we use pm.environment.set() and after that use the value when run the collection using newman?

I have case to collect access token response value from login request, then save the value to the environment variable, after that use it for authorization in the next request (run in newman), is it possible?

1 Like

Hey @hariyaditeguh99 - welcome to the community!

Iā€™m moving this post to Help for tidiness and visibility.

Does this post answer your question?

2 Likes