cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Carbonax
New Member

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
Community Support

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
New Member

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

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (7,654)