Good day. I need help and advice on the following notes problem I have:
How do I add multiple document links to a single email using the mailsend? Is this possible at all. I tried the newsletter class but I can;t seem to make it work.
In our application, several documents are routed to an approver. The approver opens document and approves it by clicking on a button. This in turn changes the value of field.
The problem is: suppose the approver now has 5 documents to approve or disapprove, what do I do so that he receives all the documents in one email and also given an option to approve all the documents at the same time e.g. open a form, ticks on the documents he wants to approve, clicks on Submit… and all the documents selected will be approved without opening each one.
Is this possible? My limited experience prevents me from solving it before the deadline.
Please let me know if anybody can help. Thank you very much and Merry Christmas.
Subject: Mulitple Document links and Update fields on mulitple documents
Now See here a simple code for Sending Mail
Ans 1 >
Sub Initialize
Dim session As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim item As NotesItem
Dim nm As NotesName
'Dim author As NotesItem
Dim dbmail As NotesDocument
Dim rtitem As NotesRichTextItem
Dim nm2 As NotesName
Set db = session.CurrentDatabase
Set doc = session.DocumentContext
Set nm = New NotesName(doc.VendorResponseName(0))
'Set author = doc.GetFirstItem("VoucherAuhors")
doc.VoucherAuthors=""
Call doc.Save(True,False)
'Call author.AppendToTextList(doc.VendorResponseName(0))
Set dbmail = db.CreateDocument
dbmail.Form = "Memo"
dbmail.Subject = "Amount Approved by Manager :-"+doc.CreatedBy(0)
dbmail.SendTo =nm.Canonical
dbmail.Body = "Your Amount has been Approved Please Deliver the Item on Expected Date Mentioned"
Set rtitem = New NotesRichTextItem(dbmail,"Body")
rtitem.AppendText("Your Ammount has been Approved !! .. Please Kindley Deliver Item before Expected Date")
Call rtitem.AppendDocLink(doc,"Click Here","Amount Approver by Manager :-"+doc.CreatedBy(0))
Call dbmail.Send(False)
Call doc.Save(True,False)
End Sub
Here u can See i m Sending a Current Document link to a User so that the User Can Open document and can take further action
Now if you want to send Multiple Document link then first you have to take the handle of those document and Embed with Email so that the user can Open that document and Approve it
Ans 2 >
Now Create a View with the Document that you wanted to be Approve/ Reject by a User … Now embed this View on a Single Form and Mail the link of that form to the User , So that when a User Open Link, he/She will be able to see all the Document that he/she wants to Approve or Reject(Select the Property Of the View in Advance tab > allow to Select Document)
Subject: RE: Mulitple Document links and Update fields on mulitple documents
Hello Sunit. I’ll test this out. However, using the embedded view… is it possible to create a button there that modifies the values of a certain field displayed in the view? I tried this but I am unable to add a button. Thanks for the reply.