Use of type of config-file

Hi,

Is it possible to call up an external file which can contain some kind of config like different id’s? From prerequisite scripts or something?

I have different environments with different environmentVariables inside, but some of the values in the variables are only valid in one environment. So when I tend to reuse my tests I have to manually change some environmentVariables inside the environments so the tests can be reused.

You can use ‘pm.sendRequest’ to send a request in the pre-request script.
If the config file is hosted somewhere, this can help
Docs: https://www.getpostman.com/docs/v6/postman/scripts/postman_sandbox_api_reference