Creating Multiple Document links in a Single email using an Action

Just wondering if anybody knows how to generate an email using an action button which includes doclinks for all the documents selected in a view.

ie. using @mailsend for a Send Link action button but will include doclinks for all the documents selected in a view.

Further to that, how would you do a similar thing through the web?

Any help is very appreciated!

Thanks

Steve

Subject: Creating Multiple Document links in a Single email using an Action.

You can accomplish this in the client by using the notesnewsletter class. For example:

Dim uiws As New NotesUIWorkspace

Dim s As New NotesSession



Dim db As NotesDatabase

Dim uiview As NotesUIView



Dim dc As NotesDocumentCollection

Dim doc As NotesDocument

Dim newsletter As NotesNewsletter





Set db = s.CurrentDatabase

Set uiview = uiws.CurrentView



Set dc = uiview.Documents



If ( dc.Count > 0 ) Then

	Set newsletter = New NotesNewsletter( dc )

	newsletter.DoSubject = True

	newsletter.SubjectItemName = "Subject"

	

	Set doc = newsletter.FormatMsgWithDoclinks( db )

	doc.Form = "Memo"

	doc.Subject = "All Selected Documents"

	Call doc.Send( False, "Mike Wagner" )

End If

Subject: RE: Creating Multiple Document links in a Single email using an Action.

Top Stuff. I will give that a try.Thanks for your help :slight_smile:

Steve