web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to store multiple ...
Power Automate
Answered

How to store multiple data item in List in power automate desktop.

(0) ShareShare
ReportReport
Posted on by 24

Hello Everyone.

Hope all are doing well.

 

I have a query regarding to "List" action in power automate desktop.

i want to store multiple item of data from excel to List .

While looping excel data after each iteration i want to store some data in List but i am unable to do this. 

It only store the last iteration item. How can i store multiple item in List, Please help me.

 

Thanks in advance.

 

Best Regards,

Suraj

 

I have the same question (0)
  • Verified answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Suraj_Adhikari 

    Please attempt the following method:

    1. Create New list named "DataList"

    2. For example, if I wish to retrieve data from an Excel file named SL and store the values from the first column into the list created above.

    Deenuji_0-1708919279112.png

    3. By employing the "Launch Excel" and "Read from Excel worksheet" actions, I have retrieved the data from the Excel file. Utilizing a "for each" loop, we are appending all current items [0] - the values from the first column - into the designated list variable

     
    Deenuji_1-1708919556530.png

     

     

    Code:

    Variables.CreateNewList List=> DataList
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\Documents\\SL.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.ReadFromExcel.ReadAllCells Instance: ExcelInstance ReadAsText: False FirstLineIsHeader: True RangeValue=> ExcelData
    LOOP FOREACH CurrentItem IN ExcelData
    Variables.AddItemToList Item: CurrentItem[0] List: DataList
    END
    Excel.CloseExcel.Close Instance: ExcelInstance
     
    Thanks,
    Deenuji Loganathan
     
    ------------------------------------------------------------------------------------------------------------------------
     
    If I've resolved your query, please consider accepting it as the solution and giving it a thumbs up to help others find answers faster.
  • Suraj_Adhikari Profile Picture
    24 on at

    @Deenuj

    Hope you are doing well.

     

    Thank you so much for your kind assistance. Your help is truly appreciated!

    It work and save my time. Thanks aot.

     

    Best Regards,

    Suraj

     

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Suraj_Adhikari 

    Many thanks for your kind words. Happy Automation!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 253 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 172 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 134 Super User 2026 Season 2

Last 30 days Overall leaderboard