Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Can't download attachment with empty file name via REST API

tilen
Tera Contributor

Hello,

 

I ran into some trouble when downloading attachments via REST API. Specifically, if an attachment's file name is an empty string "", I get the error that 

"Exception while executing request: File name must not be null or empty".
However, on the UI I am able to locate the attachment even if it doesn't have a name and I can download it. When downloading the attachment via the UI, it gets the name "sys_attachment". I'd like to know if there's a way to avoid getting this error when downloading attachments that don't have a file name via API, or is the only solution to rename the attachments and only then download them?
0 REPLIES 0