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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trying to loop through...
Power Automate
Unanswered

Trying to loop through all files in a sharepoint folder and download them - error

(0) ShareShare
ReportReport
Posted on by 26

Any ideas why this isnt working ?

This my flow

p1.png

 

I think the apply to each is working but when I try the get file content it errors

 

I select certain files using the Select and that works

 

p3.png

p4.png

 

This is the for each

p6.png

 

p9.png

 

p8.png

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi @smallzoo ,

    Please switch to classic designer.

    vyetonggumsft_2-1709721082327.png

    Remove unnecessary loops.

    vyetonggumsft_0-1709720997035.png

    vyetonggumsft_1-1709721041765.png

    Best Regards,
    Sunshine Gu

  • smallzoo Profile Picture
    26 on at

    Ok thanks


    First if after the select statement I choose Apply Each this is what I get

    p1.png

  • v-yetonggu-msft Profile Picture
    on at

    Hi @smallzoo ï¼Œ

    Could you please explain in detail what problem you are encountering?

     

    Best Regards,

    Sunshine Gu

  • smallzoo Profile Picture
    26 on at

    First you can see that I get the option of Output, Output Item and Outputs to choose from not value as per your example

  • v-yetonggu-msft Profile Picture
    on at

    Hi @smallzoo ,

    You first select 'value' in 'Apply to each' before selecting 'identifier' in 'get file content'.vyetonggumsft_2-1709729549180.png

    Best Regards,

    Sunshine Gu

  • smallzoo Profile Picture
    26 on at

    When I use apply to each all I can choose from that is similar to yours is body/value

    p2.png

  • smallzoo Profile Picture
    26 on at

    Finally got somewhere..no errors once I used the classic flow method BUT no file is copied to the one drive. It runs successfully.

    p3.png

     

    p4.png

  • v-yetonggu-msft Profile Picture
    on at

    Hi @smallzoo ,

    You don't need 'select', delete this control.

    vyetonggumsft_3-1709773117452.png

    Please check my flow:

    vyetonggumsft_0-1709772453895.png

    vyetonggumsft_2-1709773017497.png

    Best Regards,

    Sunshine Gu

  • smallzoo Profile Picture
    26 on at

    perfect thanks. It runs but I have one issue. The files are being save in my One drive folder but I want it saved in a shared folder on the network ie g:\somefolder 

  • v-yetonggu-msft Profile Picture
    on at

    Hi @smallzoo ,

    Please use this control:

    vyetonggumsft_1-1709804926156.png

    Best Regards,

    Sunshine Gu

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Expiscornovus Profile Picture

Expiscornovus 201 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 174 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard