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 / Power Automate Flow: "...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

 

Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    If you create a minimal flow, manual trigger + Get files (properties only) , will you get any result if run as the client account ?
  • AGBT900 Profile Picture
    19 on at
    @stampcoin Yes, the flow returned values when I created a separate flow in Client's Acc.
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    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)
    
     

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard