SoftwareTestPilot
All discussions
Sam OkaforJul 7

Postman: environment variables vs global variables vs collection variables?

Three overlapping variable scopes and I never remember which wins.

postmanvariables
Related learningExplore Academy skill paths

1 answer

Accepted solution

Sam OkaforJul 8

Precedence (narrowest wins): local > data (from Runner CSV) > environment > collection > global. Rule of thumb: environment for per-env values (dev/staging URLs, tokens), collection for values shared by all requests inside that collection, globals almost never (they leak across workspaces).