In LS How to get $FILE in the new memo to forward it

please tell me How can I write my agent who allow to get $file in the mail , and after i can forward it with this files attached.

many thanks for us

Subject: In LS How to get $FILE in the new memo to forward it

Using GetFirstItem method u can get the $file element from the current document and using copyitemtodocument u can copy the above item ($file)to a new document created.For the method signature and illustration refer designer help.

Hope this helps.

Subject: In LS How to get $FILE in the new memo to forward it

Dim itemA As NotesItem’…set value of doc thats ur mail document…

Set itemA = doc.GetFirstItem( “$File” )

'-----set value for new memodoc as the mail doc created for forwarding the mail.Add Body tem to the newmemodoc and then copy the $file element using

Call itemA.CopyItemToDocument( newmemodoc, “Body” )

This will copy the first $file item.

If you have more $file items then loop thro all the items.

Dim itemName As String

'…set value of doc…

Forall i In doc.Items

If item.Name=“$File” then

Call item.CopyItemToDocument( newmemodoc, “Body” )

End if

End Forall

Hope this helps.