# Save an environment variable into a csv array based on the number of iteration

**URL:** <https://community.postman.com/t/save-an-environment-variable-into-a-csv-array-based-on-the-number-of-iteration/27341>\
**Category:** Help Hub\
**Tags:** newman-project, variables\
**Created:** [August 31, 2021, 4:55pm UTC](https://community.postman.com/t/save-an-environment-variable-into-a-csv-array-based-on-the-number-of-iteration/27341 "2021-08-31T16:55:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adigiampietro](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Adigiampietro](https://community.postman.com/u/Adigiampietro)\
**Post date:** [August 31, 2021, 4:55pm UTC](https://community.postman.com/t/save-an-environment-variable-into-a-csv-array-based-on-the-number-of-iteration/27341/1 "2021-08-31T16:55:23Z")

</div>

Hi everyone,

Currently I have one POST request that creates an id and store the id in the environment variable.  
I would like to save this environment variable into an array/csv based on **the number of iteration**.  
There will be one variable for 1 iteration.  
The goal is to be able to generate this file based on the number of iteration put as the entry.
