Skip to main content

Hi,

I am new to Zapier and have done several trainings and am working on creating a zap to take an attachment from Gmail (based on specified criteria) and save the attachment to OneNote in a specified section.   I’ve been working on the Zap & have all the pieces except having a document saved to OneNote.   I get a link that if I copy & paste will open the pdf but would like it to show the document (see screenshots).     Any guidance or suggestions much appreciated!

Here is my result -  can copy link & get to document

 

Ideally, I would like an attached PDF file like this:

 

Here is my Zap & the OneNote configuration:

 

 

A note is created in OneNote but does not contain the attachment - I have tried other attachment fields in the Content but still not working.

 

@Auds 

I don’t believe it is possible to upload a file from a Zap directly to OneNote.

The API documentation https://learn.microsoft.com/en-us/graph/onenote-images-files#adding-files states that you cannot upload a file from a URL you must use a binary file.

We would need the binary file to do this, which I don’t believe is available to us through Zapier.

We can workaround this by uploading the file to a storage solution OneDrive or Google Drive then send the url as HTML link <a href=’your-file-url”> “your-file-name” </a> rather than text in the content type. This would give us a clickable link inside OneNote to the file for downloading. 

I am unsure how persistent the Zapier dev files links are, so would recommend you looked at uploading it directly to your own storage solution. 

I hope this helps. 


Thanks so much ​@Badger  - appreciate that information!   I will look into the workaround using Google Drive.


Reply