Nov 03, 2021 04:02 PM
I’m using a button with “Gmail”
& ENCODE_URL_COMPONENT({Email}) & “&su=” & ENCODE_URL_COMPONENT({Subject}) & “&body=” & ENCODE_URL_COMPONENT({Body}) to send an email through Gmail it it works great, but how do I attach a file from an attachment field on the record?
I really like the control of a button. I’d rather not use an automation.
Thanks in advance!
Solved! Go to Solution.
Nov 05, 2021 12:51 PM
Nov 03, 2021 06:17 PM
Welcome back to the community, @Steve_Ruqus! :grinning_face_with_big_eyes: Unfortunately this isn’t possible. The mailto
protocol isn’t designed to pass files as URL properties. Only the message body and header fields are supported.
There might be a way to do it using a script—which would still give you the button-level control that you want—but I haven’t delved into accessing Google’s API at that level, so I couldn’t offer more specific guidance.
Another option would be to insert a link to the file into the message body using the URL of the attachment, which can be extracted from the attachment field using a formula.
Nov 05, 2021 12:51 PM
Thanks Justin. That is an interesting idea.