cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Carbonax
Level: Power Up

Is it possible to download a pdf file from a direct link and send it as an attachment through Gmail?

I have a program creating pdf links, which is 3rd party... but I need to send them as an attachment via email. Is there any way to do it? I've been trying Gmail -> Email received -> HTTP Connect to short snippet (it's the url) -> Send email with attachment content of http body

2 REPLIES 2
Community Support Team
Community Support Team

Re: Is it possible to download a pdf file from a direct link and send it as an attachment through Gm

Hi Carbonax,

 

Not sure if this will work for you. If possible, please try to configure the Attachments Content using the dynamic content Body.

3.PNG

 

Please feel free reply if you need more help.

 

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
mbremer
Level: Power Up

Re: Is it possible to download a pdf file from a direct link and send it as an attachment through Gm

I have tried multiple different ways to obtain a pdf file using the HTTP connector and then send that file to different destinations, but they all end up the same - with an empty pdf file.

 

When I call the url directly through a browser or Postman, the pdf is returned just fine; however, when retrieving it using the Flow HTTP connector, the Flow webserver changes the response header to "Transfer-Encoding":"chunked" and it seems that this ruins the integrity of the pdf file.

 

I even tried following these instructions to retrieve the file and then email it as an attachment, but it produced the exact same results - a corrupt pdf file.

 

Is it possible to use "Content-Length" on the header instead of "Transfer-Encoding" in order to retrieve a valid pdf file?

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,248)