RE: Extracting attachments - doc.GetFirstItem("Body") returns Nothing Martha Geppert 26.Sep.13 11:28 AM a Web browser Applications Development 7.0.2Windows 2003
You can't necessarily rely on that - sometimes Notes will give the attachment an internal name rather than the actual name. This would typically be something like an 8-digit number with the correct file extension.
Some situation where this could happen is if someone attaches the same file more than once in the same document (I see this fairly often), the subsequent instances after the first will be assigned a name by Notes that it uses internally, even though the two objects actually have the same file name.
Or if a user edits a document to replace an attachment rather than edit it directly through the Notes document, and they don't delete the old version prior to attaching the new one, it could also be assigned an internal name.