Unable to read the data from postman collection in newman

I have a postman collection with all my tests written in the prerequest scriptin and i have set the data in the environment variable. I need to generate an excel/csv file with the data from this environment variable through newman.
I am trying to read this environment variable using the .on(‘prerequest’) event in the newman.run() function but not able to get the data out of it. Any help is much appreciated.

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