use global variable code example
Example 1: How to define global variables
Use pm.globals to define a global variable:
pm.globals.set("variable_key", "variable_value");
Example 2: global variable
Global variables allow you to access data between collections,
requests, test scripts, and environments. Global variables
are available throughout a workspace. I use Global variables
to quickly test something.