Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Attach a document created by a flow to an email

(0) ShareShare
ReportReport
Posted on by

Hi

 

The below flow creates a document from a word template in a SharePoint document library. The document has place holders and the form content populates those place holders.

 

The problem is, the only way you can see the info added to the place holders is if you view the document in the desktop app!

 

What next steps can i add to this flow to attach the document to an email?

 

 

LukeSykes_0-1656510423268.png

 

  • Verified answer
    v-yujincui-msft Profile Picture
    on at
    Re: Attach a document created by a flow to an email

    Hi @LukeSykes ,

     

    Maybe you could try as below:

    vyujincuimsft_0-1656671218412.png

    vyujincuimsft_1-1656671268181.png

    Result Screenshot:

    vyujincuimsft_2-1656671405069.png

     

     

    Best Regards,
    Charlie Choi

  • LukeSykes Profile Picture
    on at
    Re: Attach a document created by a flow to an email

    Thank you for this - i have redefined my question in this post. Its actually the get file content bit that's not working

     

    Get File Content from file in SharePoint document ... - Power Platform Community (microsoft.com)

  • v-yujincui-msft Profile Picture
    on at
    Re: Attach a document created by a flow to an email

    Hi @LukeSykes ,

     

    Do you want to send a SharePoint file as email attachment?

    I have made a simple test for your reference.

     

    Here is my Flow.

    vyujincuimsft_2-1656669802658.png

    Or

    [
    {
     "Name": "filename",
     "ContentBytes": @{body('Get_file_content')}
    }
    ]
    body('Get_file_content')

    vyujincuimsft_1-1656669553029.png

    Result Screenshot:

    vyujincuimsft_0-1656669466805.png

     

    In addition, here is a link that for your reference.

    https://docs.microsoft.com/en-us/microsoft-365/community/power-automate-send-sharepoint-files-as-attachments

     

     

    Best Regards,
    Charlie Choi

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 >