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 Platform Community / Forums / Power Automate / Flow to Email Individu...
Power Automate
Answered

Flow to Email Individual Documents from a Document Set

(0) ShareShare
ReportReport
Posted on by

 

 

 

 

Hi!

 

I'm fairly new to Power Automate and I'm looking to create a flow that will take the each document in a document set and send individual emails with the document attached.

 

The Document Set:

Capture.PNG

The "Example" set:

Capture2.PNG

 

I've tried "Get file content" but I keep getting an error.  Are there any better ways to accomplish this?

 

Thanks!

Categories:
I have the same question (0)
  • efialttes Profile Picture
    14,756 on at

    @ajoconnell 

    Is the 'Get File content' action block the one that throws an error? If so, which 'File identifier' are you using as its input?

    Any screenshot from your Flow design and/or execution error is appreciated

    Thanx!

  • ajoconnell Profile Picture
    on at

    Hi @efialttes ,

     

    The trigger I used was a manual "For a selected file"

     

    1.png

     

    For "Get File Properties" I used the ID from "For a selected file" and for "Get File Content" I used the "Get File Properties" identifier.

     

  • efialttes Profile Picture
    14,756 on at

    Hi again

    Thanx for the screenshot!

    I've just implemented these three steps and the execution succeeds.

    Flow_DocumentSet.png

     

    Can you specify a bit more what do you mean when mentioned that 'I've tried "Get file content" but I keep getting an error'?

    Thanx!

     

    BTW here you are a couple of links to resources on Document Sets and Microsoft Flow

    https://sergeluca.wordpress.com/2019/04/17/microsoft-flow-and-document-sets-while-waiting-for-modernization/

    https://karinebosch.wordpress.com/2018/11/08/microsoft-flow-create-a-document-set/

    Hope this helps

     

  • ajoconnell Profile Picture
    on at

    The error I get is:

     

    {
    "status": 404,
    "message": "File not found\r\nclientRequestId: 0fcf9aaa-fdf6-4ad2-9440-644b7319a81d\r\nserviceRequestId: 0fcf9aaa-fdf6-4ad2-9440-644b7319a81d"
    }
     
    tempsnip.png
     
     
  • efialttes Profile Picture
    14,756 on at

    @ajoconnell 

    I think you should doublecheck the value currently assigned as 'Get file content' File Identifier.

    On the execution screenshot your shared, I see your file identifier does not include the file extension.

    Now, when I successfully execute my test flow, I can see the file extension:

    Flow_ForSElectedItem_5.png

    Please hover your mouse over the dynamic content you currently has assigned as 'File identifier' input and verify it matches with the one I assigned

    body('Get_file_properties')?['{Identifier'}]

     

    Hope this helps

  • ajoconnell Profile Picture
    on at

    Capture.PNG

  • efialttes Profile Picture
    14,756 on at

    Weird 🤔

    Is it 'Site address' the same in both action blocks?

    Did you try to remove and add the 'Get file content' action block again?

    And, doublecheck if the connection your are currently using for these two action blocks is the same?

    And, make sure you are executing the flow, I mean not using 'Test' option 'Using data from previous runs' from Designer view?

    Thanx!

     

  • Verified answer
    ajoconnell Profile Picture
    on at

    After some troubleshooting, I was able to finally achieve what I was looking to do.  

     

    Using a Document Set, I needed to upload multiple documents and have an email sent with each file attached to one document set manually:

     

    Doc Library.png

    In the "Example" doc set, there are three files:

     

    Files.png

    Flow trigger "Document Transmission":

    Flow.png

     

    Once triggered, it sends off three different emails :

    Final.png

     

     

  • efialttes Profile Picture
    14,756 on at

    OMG!

    That's the reason why there was not an extension on your 'Get file properties' File Identifier output!

     

    Congrats! Please note I've just marked your last reply as 'Solution'. I think it will be very helful for others facing this same issue.

    Thanks for spending some time to share the way you fix it!

     

     

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard