Using hosted files enables a user to add attachments to emails sent by triggers. Because it's hosted, the name of the document will be changed, resulting in a name like "5678786949597810979.docx". Is there any way to keep the original name or enter an alias?
Thanks,
matman
You can upload the file in the SETTINGS object and use its token (e.g. {!#SETTINGS.file_upload}) in the email template. Unlike hosted files, it keeps the original file name when attached to an email.
The data in SETTINGS object can be accessed in a number of areas throughout all your applications such as Templates and Formula fields. You will manually have to create a file upload field before you can upload the document, though.
Hope this helps.
You can upload the file in the SETTINGS object and use its token (e.g. {!#SETTINGS.file_upload}) in the email template. Unlike hosted files, it keeps the original file name when attached to an email.
The data in SETTINGS object can be accessed in a number of areas throughout all your applications such as Templates and Formula fields. You will manually have to create a file upload field before you can upload the document, though.
Hope this helps.
Issue with Hosted Files will be fixed: PSC00316082
Thanks Godfrey, I could make it work! Documents are succesfully attached to the email, keeping the original name :)