what to do instead of making variables global code example
Example: How to define global variables
Use pm.globals to define a global variable:
pm.globals.set("variable_key", "variable_value");
Use pm.globals to define a global variable:
pm.globals.set("variable_key", "variable_value");