Skip to main content
Best answer

File naming protocol on upload to drive

  • April 12, 2021
  • 2 replies
  • 209 views

Re. Autosave new attachments from Gmail to Google Drive.

 

I’m applying this zap to emails which all have the same format (they’re auto-generated by another piece of software). Within the body of the email is the name I would like to give the file/attachment. For example:

 

Body text of the email message reads: “Your document <N001> has been approved.”

Then I would like the file name for the attachment to be “N001”

 

Is it possible to set a naming protocol where the zap can identify the “N001” from the body of the email and make this the filename for the attachment when it uploads it?

 

Thanks!

 

Best answer by Troy Tessalone

Hi @nmharrower 

Try these Zap steps

  1. Trigger: Gmail New Attachment
  2. Action: Formatter > Text > Split (split at “Your document ”)
  3. Action: Formatter > Text > Split (split at “ has been approved.”)
  4. Action: GDrive Upload File

 

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • April 12, 2021

Hi @nmharrower 

Try these Zap steps

  1. Trigger: Gmail New Attachment
  2. Action: Formatter > Text > Split (split at “Your document ”)
  3. Action: Formatter > Text > Split (split at “ has been approved.”)
  4. Action: GDrive Upload File

 

 


william
Forum|alt.badge.img+6
  • Zapier Staff
  • June 10, 2021

Hey @nmharrower, hope you’re well, I just wanted to check in here! :)

Were you still needing help here, or were you able to get things working with the info from Troy?