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

Community site session details

Session Id : ozVEzWm8VK7kmULVHi3lOy
Power Automate - Building Flows
Answered

List Folder action

Like (0) ShareShare
ReportReport
Posted on 10 Mar 2024 23:09:33 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!

  • Verified answer
    v-yetonggu-msft Profile Picture
    on 12 Mar 2024 at 01:37:21
    Re: List Folder action

    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

     

  • IWantToKnow Profile Picture
    90 on 11 Mar 2024 at 16:46:00
    Re: List Folder action

    Thanks @v-yetonggu-msft ,

    Just wondering:

    • Is List Folder action not recommend?
    • Why is the filtering required after get files action?
  • v-yetonggu-msft Profile Picture
    on 11 Mar 2024 at 01:34:17
    Re: List Folder action

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete