This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
Env. variable is not updating when using postman flows #292
ToobaMunir
started this conversation in
Defect
Replies: 2 comments 1 reply
-
Hey @ToobaMunir , I ran into the same issue. Found an answer here #142 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I am running into the same issue as well. I am unable to use the environment variables in the flow. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have written few test scripts in postman where I am fetching the values from API response and saving data in env. variables. When running the individual requests then the variables values are being added/ updated correctly but, when I am executing the same request using postman flows then the env. variables are not updated.
To check weather the test script is executing or not while the flow is running I added a dummy log in console.
The log in console is printed out that means the test script is running when request was executed via flow but, unable to understand that why it didn't update the env. variables.
var data = pm.response.json(); pm.environment.set("itinerary_id_Bus", data.data.buses[0].itinerary_id); pm.environment.set("lookupBus",data.data.itinerary_lookup_key) pm.environment.set("deptDateBus",data.data.search_query.departure_date)
console.log("I am running yayy")
Beta Was this translation helpful? Give feedback.
All reactions