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 : XcBxwl/EOTP3qeu05+Fpt5
Power Automate - Using Flows
Unanswered

Power Automate Flow: "Get files (properties only)" Returns Empty Array in Client SP Site

Like (0) ShareShare
ReportReport
Posted on 29 Jul 2025 10:17:22 by 19

Hello Community,

I’ve built a Power Automate flow that:

  1. Triggers When a new email arrives.
  2. Creates a folder in a SharePoint Online document library.
  3. Saves email attachments to that folder.
  4. Uses Get files (properties only) to list files in the folder.

The issue:

  • In my test environment (where I have Full Control over SharePoint), the flow works perfectly.
  • When migrated to the client environment, "Get files (properties only)" returns an empty array even though files exist in the folder.

What I’ve verified:

  • The flow creates the folder and saves attachments successfully in both environments (proves write-access works).
  • Folder paths and action configurations are identical between test and client flows.
  • The client’s SharePoint account has been granted edit permission to the library.
  • No filters or special queries are applied in the "Get files" action.

I am unable to understand why get files returns an empty array. Can you suggest anything to debug this problem?

 

I have the same question (0)
  • stampcoin Profile Picture
    4,355 Super User 2025 Season 2 on 30 Jul 2025 at 20:40:50
    Power Automate Flow: "Get files (properties only)" Returns Empty Array in Client SP Site
    Since the minimal flow works. It might be a delay problem.
    Please try below one of them:
     
    Option 1:
    Trigger: When a new email arrives
    Create folder
    Save attachments
    Delay (e.g., 60 seconds)
    Get files (properties only)
    
    Option 2:
     
    Initialize variable (e.g., FilesFound = false)
    Do Until (FilesFound = true or max attempts reached):
        Get files (properties only)
        Condition: length(outputs('Get_files')?['body/value']) greater than 0
            Yes:
                Set FilesFound = true
            No:
                Delay (e.g., 15 seconds)
    
     
  • AGBT900 Profile Picture
    19 on 30 Jul 2025 at 18:51:03
    Power Automate Flow: "Get files (properties only)" Returns Empty Array in Client SP Site
    @stampcoin Yes, the flow returned values when I created a separate flow in Client's Acc.
  • stampcoin Profile Picture
    4,355 Super User 2025 Season 2 on 29 Jul 2025 at 11:37:26
    Power Automate Flow: "Get files (properties only)" Returns Empty Array in Client SP Site
    If you create a minimal flow, manual trigger + Get files (properties only) , will you get any result if run as the client account ?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 798 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 469 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 333

Last 30 days Overall leaderboard

Featured topics

Restore a deleted flow
Loading complete