cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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.
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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 193 members 4,261 guests
Please welcome our newest community members: