Get Web Attachment W/Agent & Send To Outlook

I have a web application where a web user can attach a file. The web forms’ data is captured by a lotusscript agent that puts that data into an email and sends to an Outlook administrator.

My problem is, I can’t seem to get a handle on the attached file within the lotusscript agent that runs on the web users saved form. I don’t know how to get the attachment. I’m new to scripting, and from what little I know, you need to know the name of the file in order to process it.

Because I don’t know the name of the file - it will always be different, and I don’t want to extract it to a c:/ directory, I’m at a loss.

HELP!

Thank you in advance for your time.

Subject: Get Web Attachment W/Agent & Send To Outlook

You may have a problem here, because if your code is running as a WebQuerySave-agent, the attachment may actually not really be attached yet.

But if it is, you can get its name by using Evaluate with the @AttachmentNames formula.

Dim vEval As Variant

vEval = Evaluate(“@AttachmentNames”, doc)

Forall v in vEval

If v <> “” Then

… here is your attachment, respresented as “v”.

End If

End Forall