Automate collection requests with environments

Hello everyone,

I’m working on connecting some of our security tools with our ticketing system.

I have a collection that retrieves data from the security tools and saves it to an environment variable. My second collection uses this data from the environment variable to create a ticket in our ticketing system.

This works perfectly when running the requests individually or running the collection manually in the runner.

However, I want this process to happen automatically every day, and I’ve encountered an issue. Scheduled runs don’t seem to use the environment variables correctly.

I then tried creating a flow, but I faced the same issue: the flow can run automatically, but it doesn’t use the environment variables as expected.

Could anyone help me with this?

Can you add some delays between the calls and try the run both collection in order? Maybe this could help.

I’m already adding a delay, putting them in order also didn’t fix it.

Hi @sennevdc20. Welcome to the Postman Community :postman_logo:

What issues were you experiencing when using scheduled runs with environment variables? I am curious to learn about your experience and why it’s not working for your use case.

For some reason it just doesn’t use the environment variables. It doesn’t set and get data when using scheduled.

Hi @sennevdc20 I am not able to replicate this issue on my end. Did you select the environment to run your collection against when scheduling?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.