PDF From Google Drive to Outlook Draft

Hey Everyone,
I haven’t been able to find a way to upload a pdf from Google Drive to Outlook as an attachment to a draft email. I have done both downloaded the PDF from Google Drive and also a HTTP request. I have been getting errors about the Binary Data.

Relatively new, so a step by step would be most helpful.

Thanks

Please share your workflow



Information on your n8n setup

  • **n8n version: most recent online version
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): N8N Cloud
  • **Operating system: Dell Laptop

Are you trying to use the PDF binary as an attachment on the outlook draft, or as the message content?

As an attachment to a draft email.

Hi,
I noticed a couple of things from the screenshots. Please try the following steps:

1- In the HTTP node, set the Response Format to File.

2- In the Outlook node, add Attachments.

Click Add Field, choose Attachment, and put the binary “data” in that instead of in the “message” field.

This is what I get as an error code.

try this first:

I have already. It still gives me the “were unable to deserialize” error code on the outlook end


.

Wait, why are you using the HTTP node? If you want to download a file from Google Drive, why not use the Google Drive node with Download Operation?!

and Options Output File: data
so this will be the input for the outlook attachment

Okay I did that now but when it gives me the error code “cannot deserialize”



hmm
at this point I think this is a bug since you’re using n8n cloud and according to:

Thank you for your help. Is there any way to do this alternatively? What if I moved to self hosting N8N?

Self-hosting is more complicated when it comes to authentication.

Just wait for help—maybe someone knows how to fix this particular issue and can confirm if it’s still a known bug…

1 Like

Okay. Thank you for your help!

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.