# Update List in Flows

**URL:** <https://community.postman.com/t/update-list-in-flows/46852>\
**Category:** Help Hub\
**Tags:** loop, postman-flows\
**Created:** [April 27, 2023, 4:06pm UTC](https://community.postman.com/t/update-list-in-flows/46852 "2023-04-27T16:06:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmayorga](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gmayorga](https://community.postman.com/u/gmayorga)\
**Post date:** [April 27, 2023, 4:06pm UTC](https://community.postman.com/t/update-list-in-flows/46852/1 "2023-04-27T16:06:40Z")

</div>

Hello ,  
I’m new in this community and new with Postman-Flows and new with Postman 🙂  
I’ve created a Postman-Flow to move the data retrieved by a GET Request from Production environment to my Pre-production environment using a POST request.

The flow Loops on a list of messageIDs, updates a variable an passes the variable to a GET Request, then passes the body of the response to a POST Request, moving the message from one environment to another.  
The Flow works as expected. Only thing is that I need to copy/paste each messageID in the list.  
I’d rather paste the whole list in one go.  
Is there a way to create a List for my flow from my file or from a request?  
The messageIDs come from a query on Application Insights.  
So there is maybe a way to receive directly the list of messageIDs in my flow.  
Any help would be higly appreciated.

Here a screenshot of my Flow

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/7/e7a2356f751767aa808b934f640f5cd865741e13.png)

Thanks!

G
