Access collection / Folder name in sandbox

It would be great to give an access to “collection / folder name” via pm or postman objects in scripts. Seem to be really easy, but have a huge impact on configuration workflow

I love postman, cheers.

1 Like

" postman.setNextRequest() has a scope, which is the source of your collection run. If you run a collection, you can jump to any request in the collection (even requests inside folders, using the same syntax). However, if you run a folder, the scope of postman.setNextRequest() is limited to that folder. So you can jump to any request in this folder, but not ones that are outside of the folder. It includes requests inside other folders, and also root-level requests in the collection."

Per the documentation, this is possible if you are running tests within a specific collection. However you wont be able to move between collections.