Hosted file names

Posted by matman on 09-Oct-2014 09:31

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

Posted by Godfrey Sorita on 09-Oct-2014 10:29

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.

All Replies

Posted by Godfrey Sorita on 09-Oct-2014 10:29

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.

Posted by pvorobie on 09-Oct-2014 10:55

Issue with Hosted Files will be fixed: PSC00316082

Posted by matman on 10-Oct-2014 04:04

Thanks Godfrey, I could make it work! Documents are succesfully attached to the email, keeping the original name :)

This thread is closed