how to set global variable in a function. 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");