Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Send Multiple Files and Folders or Multiple Files via Power Automate

(0) ShareShare
ReportReport
Posted on by 522

I have build an flow which sends all files but not folder(s) and moreover i want to send only selected files or folders (Multiple as attachment) on selection.

 

And if files under sub-folders "Test/files" the flow fails to send.

 

Action which "For a selected file" does not actually selects but sends all files and when there is folder i cannot send or error.

 

Nikhil2_0-1613133315064.png

 

Regards.

  • Mani1012 Profile Picture
    2 on at
    Re: Send Multiple Files and Folders or Multiple Files via Power Automate

    Hi Everyone, 

    I want to create flows to send a mail based on each row from excel file. For each row I need to send each mail with documents attached. For each row new file will be created in the OneDrive with unique name which is available in excel file. The number of files may vary from 1 to 5. How can i attach these files in my mail, kindly help. Please find my attached screenshot for your reference.

    Mani1012_0-1691591375372.png

     

  • Nikhil2 Profile Picture
    522 on at
    Re: Send Multiple Files and Folders or Multiple Files via Power Automate

    Well basically what i am trying to do is send "Selected files" from document library, if it has a parent folders(sub-folders, sub-folders. goes on). If i want to send from 1st sub folder, i should be able to select them and send manually. 2nd sub folder same and goes on

    From the below condition that i am trying to send, if i have files on top level should select only them (example 5 files, select 4 and send 4 as multiple attachments) But "Get file content using path" has a problem and also with get file content as it sends all files not selected one.

    Capture.PNG

     

    Flow save failed with code 'Invalid Template' and message 'The template validation failed: 'The inputs of template action 'Append_to_array_variable_2' at line '1 and column '2756' cannot reference action 'Get_file_content'. Action 'Get_file_content' must either be in 'run After' path or within a scope action on the 'run After' path of action 'Append_to_array_variable_2', or be a Trigger.'.'

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Send Multiple Files and Folders or Multiple Files via Power Automate

    @Nikhil2  what error are you getting when your flow fails?

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1