I am poking around at the Postman public collections here. In the Environment Scanner collection - the first call saves some data to collection level variables, but they don’t actually seem to persist for me.
I made a fork of the collection, and have the needed environments forked as well.
What I am seeing is this - the first call “Get all workspaces” saves data to collection level variables, but once the call is done, they’re not really saved. I cannot see them. But on the Test tab, I can add this and see it supposedly there, while it is executing.
pm.environment.set("teamWorkspaceArray", teamWorkspaceArr); console.log(pm.environment.get("teamWorkspaceArray")); //added, there but not really saved
When I try to run the next call “Access the contents of workspaces accessible to you” the collection variable cannot be read, so that call fails.
If I change the variable to be saved to an environment instead of the collection, the save is persisted. But it doesn’t make sense for me to edit this collection and functionality to just test it. I am guessing that I must be doing something wrong. Please help.
p.s. - I also tried to Export the collection, then import it as a copy, same.