cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pevans
Regular Visitor

Emailing new sharepoint file as an email attachment

Hello.

 

I am using Formstack Documents to send a merged form PDF document into my Sharepoint folders. I want to receive an email notification each time a new PDF is added to the folder but with the document as an attachment so I do not need to log into sharepoint each time to see the document.

 

I can see there is a template workflow 'When a file is created in a folder -> Send an email (V2)' however I do not know how to send the PDF as an attachment.

 

Any help hugely appreciated.

Thanks.

Paul

1 REPLY 1
ekarim2020
Super User
Super User

You can create the flow like this:

2021-12-12_23-43-02.png

 

We can check the file extension using an expression to ensure that it is a PDF document:

2021-12-12_23-48-43.png

triggerOutputs()?['headers/x-ms-file-name']

 

Then finally we email the document. The Attachment Name and Attachment Content is selected from Dynamic content:

2021-12-13_00-00-51.png

2021-12-12_23-52-19.png

 

 

Hope this helps.


Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,885)