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 / Create an Excel File f...
Power Automate
Unanswered

Create an Excel File from the list of files present in Onedrive Folder

(0) ShareShare
ReportReport
Posted on by 30

Hi Team,

I am very new to Power Automate. I am trying to add a row in the excel table based on the no of files present in a OneDrive (Business) folder using Power Automate Cloud. I already created a table and mapped the headers but the problem is if the folder contains 2 files it updating the excel table as 4rows duplicating each file.

when I checked the flow, its going for two iterations only but updating in the excel as four rows. Am i missing anything?
Can anyone help me out on this?

SalmanShaik_0-1700307967881.png  

SalmanShaik_1-1700308008492.png

 

 

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @SalmanShaik 

     

    As per the flow execution, it should add only 2 rows to the excel table, so other top 2 rows were present earlier ?

    Nived_Nambiar_0-1700315323270.png

     

    Does last 2 rows were added by flow, i think it is like that only.

     

    May be you can show entire flow design and tell how thing should work 🙂 so that we can resolve the issue quickly 🙂

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • SalmanShaik Profile Picture
    30 on at

    Hi @Nived

    No, those top 2 rows are not present earlier, both 4 rows are being added by the flow.
    If i keep 2 files its adding 4 rows, 3 files means 9 rows are getting added i guess some loop issue. I verified the things but all looks fine for me. Please find the complete flow

    SalmanShaik_0-1700319281667.pngSalmanShaik_1-1700319346472.png

     

    SalmanShaik_2-1700319399902.png

     



    SalmanShaik_3-1700319490827.png

    Can you share me the sample flow to list all the files and add accordingly the rows in excel table.

    let me know if anything is required....

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Now i got the reason by we got more data than expected !

    @SalmanShaik 

     

    See in your flow, you are using trigger which trigger when file is created in a folder, then you are using list files and then adding all the row details in excel table , i think list all files option is not needed in your case. I hope this simple design is itself enough !

     

    Nived_Nambiar_0-1700321015790.png

     

    This will add details of each file which is added in a specific folder.

     

    Hope this helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • SalmanShaik Profile Picture
    30 on at

    Hi @Nived_Nambiar 

    It Worked for me, now i got to know if we place 100 files then 100 times the flow will be triggered. but i have few more questions for you

    1. Actually i placed 3 image files in the folder, sometimes the files are being read in order as 2,3,1 and sometimes 3,2,1 is there any logic behind this? i can see the the date modified for all the files are same & they are uploaded at the same time also. I need the files in order like 1,2,3 only.

    2. I have to place 1800 files at a single time in the folder is there any limitations in power automate? If i follow the flow shared by you then in the run history  i have to verify the 1800 runs whether each one is successful or not.
    Is there any other better way in a single flow all the files will be read in a single instance like loop which will fit my use case?
    Screenshots are attached for your reference...

     

    SalmanShaik_0-1700324082200.pngSalmanShaik_1-1700324106479.png

     

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @SalmanShaik 

     

    in the trigger settings, could you enable the concurreny control option like below 

     

    Nived_Nambiar_0-1700324495914.png

     

    Nived_Nambiar_1-1700324518009.png

     

    See whether that helps !

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • SalmanShaik Profile Picture
    30 on at

    Hi @Nived_Nambiar ,

    No it doesn't helped me now the flow is triggering 2 times as i can see it in run history. The reason behind is 2 files are uploading at a time and another file is slightly getting delayed while uploading. so its considering 2 files only.


    Is there any logic to read the files in an order like i pasted in the folder?

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @SalmanShaik 

     

    Sorry for late response !

     

    May be you can try this flow design

    Nived_Nambiar_0-1700409573736.png

     

    Not sure how files are being sorted being in one drive, currently assuming ascending order as of now.

     

    So in the trigger settings, disable the below option :

    Nived_Nambiar_1-1700409655680.png

     

    Now next in compose action, use below expression to sort the list of files obtained from trigger output in ascending order:

    Nived_Nambiar_2-1700409739782.png

     

    Expression used: 

    sort(triggerOutputs()?['body'],'NameNoExt')
     
    Now use the output of compose action to loop over like below:
     
    Nived_Nambiar_3-1700409883890.png

     

    Nived_Nambiar_4-1700409904029.png

     

    see the results below:

    Nived_Nambiar_5-1700409951230.png

     

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • SalmanShaik Profile Picture
    30 on at

    Hi @Nived_Nambiar 

    It Worked for me, do we have any limitations for the actions List Files in Folder & when a file is created like they can read only 100 files at  a time?
    In my use case i have to upload 1800 files at  a time in the folder.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard