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 Automate
Answered

List Folder action

(0) ShareShare
ReportReport
Posted on by 90

Hi all,

I'm trying to use the action "List Folder" for a sharepoint folder. For some reason it isn't working now.

Where can I find the folder ID? I have tried giving the path as well-got an error.

Any ideas please?

Thank you!

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

    Hi @IWantToKnow ,

    Please try to use 'get files' control.

    I did a test for your reference.

    In my scenario:

    vyetonggumsft_1-1710120668969.png

    vyetonggumsft_2-1710120803110.png

    item()?{'ID']
    item()?['{Name}']

    Best Regards,

    Sunshine Gu

  • IWantToKnow Profile Picture
    90 on at

    Thanks @v-yetonggu-msft ,

    Just wondering:

    • Is List Folder action not recommend?
    • Why is the filtering required after get files action?
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @IWantToKnow ,

    1.Because we can set the filter condition 'FSObjType eq 1' in the 'Get files' Action, which means only getting the records of the folder, we can get the common numeric ID.

    vyetonggumsft_6-1710207105821.png

    Return:

    vyetonggumsft_1-1710206503712.png

    vyetonggumsft_8-1710207270320.png

    The Id of the list folder not only gets the Id of the folder, but also the Id of the file. The Id obtained is not our common numeric ID, but a specific identifier.

    vyetonggumsft_5-1710207025532.png

    Return:

    vyetonggumsft_7-1710207153595.png

    2.I use ’Select‘ just to display the folder ID and folder name to you more intuitively.

    It has no other meaning. If this step is not used in your flow, you can consider deleting it.

    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

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard