developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks




Get attachment names using vbscript
Mayank Bhatnagar 02/26/2013 05:39 PM
General All Releases All Platforms


I am trying to get the attachment names using vbscript. I get the handle to the corresponding backend document but could not get the attachments in it. Its so easy in lotusscript but this doesnt seem to be working in vbscript
The following fails

dim s
Set s = CreateObject("Lotus.NotesSession")
Call s.Initialize
MsgBox s.CommonUserName,, "Common user name" 'works till here
Dim eval
eval = s.Evaluate("@AttachmentNames", doc) 'fails.. type mismatch

Please help.
Any other means of getting $file item values is also acceptable

Go back