Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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

  • v-yetonggu-msft Profile Picture
    on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    Hi @smallzoo ,

    Yes, your guess is correct. 

    On the Power Automate platform, networked files will not be automatically saved locally. You can manually download and click the file to save it locally.

     

    Best Regards,

    Sunshine Gu

    If my answer satisfies you, please mark my reply as a solution so that I can help more people in the future.

  • smallzoo Profile Picture
    26 on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    It wont allow me to type in the network drive ?

    smallzoo_0-1709805347104.png

     

  • v-yetonggu-msft Profile Picture
    on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    Hi @smallzoo ,

    Please use this control:

    vyetonggumsft_1-1709804926156.png

    Best Regards,

    Sunshine Gu

  • smallzoo Profile Picture
    26 on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    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
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    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
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    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

  • smallzoo Profile Picture
    26 on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

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

    p2.png

  • v-yetonggu-msft Profile Picture
    on at
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    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
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    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
    Re: Trying to loop through all files in a sharepoint folder and download them - error

    Hi @smallzoo ï¼Œ

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

     

    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow