Skip to main content
Best answer

New outlook email file/attachment saved to Dropbox in specific folder


i have set up a second zap. when a new email/attachment from outlook comes in from a particular person/subject i wanted the attachment to be saved to dropbox. However, when i run a test it only saves a text file?  am i missing something?

Best answer by jesseBest answer by jesse

Just summarizing some of the things to try if the file you’re trying to upload to Dropbox comes across as a text file!

It looks like the issue here was that you had the “Subject” mapped to the file field when the file field is expecting an object. More info on how to work with file objects, here: https://zapier.com/help/create/basics/different-field-types-in-zaps#step-4

If you’re trigger app is sending multiple attachments, that is going to cause some issues as Nick outlines here:

nicksimard wrote:

Hi @gurdev!

This may not work if there are multiple files attached, because what happens is they get added into a zipped folder, but this would be the type of field you’d be looking for:

When it’s a file object you’ll see (Exists but not shown) as shown above.

 

So long as you’re working with a file field sending across a single file object, this should work! And for anyone following along, we’ve also put together this guide for working with attachments between Gmail and Dropbox: 

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

14 replies

Ennes
Forum|alt.badge.img+5
  • Tinkerer
  • 130 replies
  • December 28, 2020

Hey @gurdev,

I think it is by default like this. Can you show the text message you receive? And is the test successful?


  • Author
  • Beginner
  • 7 replies
  • December 28, 2020
see snips of what went into dropbox folder

 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31183 replies
  • December 28, 2020

Please provide screenshots of how your Zap steps are configured.

It’s likely that you may need to specify a different data point from the trigger step.

 

Uploading a file creates a text file instead of what I expect

The Dropbox app requires file objects to be passed along during a Zap, and will not download files from a URL.
One may consider using a Gmail 'Send Email' action as you can provide a public URL and create a file object that Dropbox can use.


  • Author
  • Beginner
  • 7 replies
  • December 28, 2020

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31183 replies
  • December 28, 2020

Please provide screenshots of how your Zap steps are configured.

 


  • Author
  • Beginner
  • 7 replies
  • December 28, 2020

just thinking. surely I’m not the first person to automate this. is there a template I can follow?


  • Author
  • Beginner
  • 7 replies
  • December 28, 2020

 

 

 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31183 replies
  • December 28, 2020

This is the issue, you’re using the Subject for the File, but it expects a file object.

Article: https://zapier.com/help/create/basics/different-field-types-in-zaps#step-4

 


  • Author
  • Beginner
  • 7 replies
  • December 28, 2020
i can’t see an option for attachement in outlook apart from the above

 


Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31183 replies
  • December 28, 2020

File fields - Data in the form of an actual file object or URL

 


When we reference files on Zapier, we mean the actual file object, and not a text field describing the file.
For example, a file would be a photo itself, a field describing that file might be the Name, or the URL for that photo.
If you put a string of text in a file field, we'll convert it to a .txt file for you.
If you give us a URL, we'll inspect the URL and try to load in the data there and name it properly.
And, if the item is a file from the trigger side, we'll bring it along.

Gmail file attachment

Note: inserting multiple file fields into a single file field is unsupported.

Quick reference:

  • File: passes file to action app
  • URL: passes data from URL in the form of a single file to action app
  • Text: creates a .txt file containing the field contents and uploads to action app

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31183 replies
  • December 28, 2020

This won’t work because the value for the “Has Attachments” data point is “true”, not a file object.

 


nicksimard
Forum|alt.badge.img+11
  • Zapier Staff
  • 2115 replies
  • December 28, 2020

Hi @gurdev!

This may not work if there are multiple files attached, because what happens is they get added into a zipped folder, but this would be the type of field you’d be looking for:

When it’s a file object you’ll see (Exists but not shown) as shown above.


AndrewJDavison_Luhhu
Forum|alt.badge.img+10

@gurdev 
Just checking in to see if you still need help with this? 


jesse
Forum|alt.badge.img+9
  • Architect
  • 1348 replies
  • Answer
  • April 28, 2022

Just summarizing some of the things to try if the file you’re trying to upload to Dropbox comes across as a text file!

It looks like the issue here was that you had the “Subject” mapped to the file field when the file field is expecting an object. More info on how to work with file objects, here: https://zapier.com/help/create/basics/different-field-types-in-zaps#step-4

If you’re trigger app is sending multiple attachments, that is going to cause some issues as Nick outlines here:

nicksimard wrote:

Hi @gurdev!

This may not work if there are multiple files attached, because what happens is they get added into a zipped folder, but this would be the type of field you’d be looking for:

When it’s a file object you’ll see (Exists but not shown) as shown above.

 

So long as you’re working with a file field sending across a single file object, this should work! And for anyone following along, we’ve also put together this guide for working with attachments between Gmail and Dropbox: