This query returns an attachment from a specific Gmail message, located by its filename, as links to a temporary copy of the file that IFTTT hosts and removes automatically, along with the attachment's details.
Developer info
API endpoint slug
gmail.get_attachment_by_filename
Runtime method
performQuery("gmail.get_attachment_by_filename"}
Query fields
Message Text input > Other
Label
Message ID
Helper text
The message that contains the attachment. Use the MessageId ingredient from a Gmail trigger or query.
Slug
message_id
Required
true
Can have default value
true
Attachment filename Text input > Other
Label
Attachment filename
Helper text
The file name of the attachment to get, for example report.pdf. Capitalization doesn't matter. IFTTT saves a temporary copy of the matched file so your Applet can use a link to it.
Slug
attachment_filename
Required
true
Can have default value
true
Attachment size Text input > Other
Label
Attachment size
Helper text
Optional: the attachment's size in bytes, to pick one attachment when several share a filename. The attachment you pick here is the one IFTTT copies and links.
Slug
attachment_size
Required
false
Can have default value
true
Ingredients
Temporary public attachment url
Link to a temporary copy of the attachment, hosted by IFTTT rather than Gmail. Anyone with the link can open the file until the copy is removed after about a day, so use it in this Applet rather than saving it. Filled only on the result IFTTT copied.
Temporary private attachment url
Link to the same temporary IFTTT-hosted copy that only you can open, and only while signed in to IFTTT. The copy is removed automatically about a day later. Filled on the same result as the public link; empty on the others.