Skip to main content
This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



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

Notes/Domino 6 and 7 Forum

developerWorks

  

PreviousPrevious NextNext


Anita Myers 26.Jan.15 11:17 AM a Web browser
Domino Administrator All Releases Linux - SuSE


I need to make a modification to a database that was created in 2000 based on the approve4.ntf template.

The template was used to create an approval for appropriations. Once a document is approved by all management or denied by one approver, an e-mail is sent to the document's creator informing them of the approved or denied status of their request. Our CFO has asked to be included in this notification e-mail but I have no idea where the notification e-mail information is stored to add the CEO's address.

** Additional information. The following is the code from the database. I am unsure how to add the Lotusscript to include the additional name.

Sub SendNotification
Print "SendingNotification"

'Instantiate the object variables for the maildoc note that we will create and its Body field
Set maildoc = New NotesDocument(db)
Set rtitem = New NotesRichTextItem(maildoc, "Body")
DueDate = note.DueDate

'If this is the last approver then mail is sent to the requester
'The Recipient variable is used in the Messagebox at the end of this sub, to tell the user who mail was sent to
If LastApprover Then
RequesterName = note.RequesterName
SendTo = RequesterName(0)
Recipient = RequesterName(0)
Select Case Action(0)
Case "Approve"
StatusString = "approved"
tmpFlowStatus = "Approval of your " & WorkflowObject(0) & " is complete. "
Case "Deny"
StatusString = "denied"
tmpFlowStatus = WorkflowObject(0) & " has been denied by " & CurrentUser
Case "Withdraw"
StatusString = "withdrawn"
tmpFlowStatus = "Your " & WorkflowObject(0) &_
" has been withdrawn. You may be able to resubmit it at another time. "
End Select
Subject = "Your " & WorkflowObject(0) & " has been " & StatusString
maildoc.FlowStatus = tmpFlowStatus
Else
'If there are more approvers we need the appropriate expire date because we put in on the message
Select Case RoutingMethod(0)
'If it is Serial - mail gets sent to the NextApprover
Case "Serial"
SendTo = NextApprover
Recipient = NextApprover
'If it is Parallel - mail gets sent to all approvers
Case "Parallel"
SendTo = ApproverList
Recipient = "all Approvers"
End Select
Subject = WorkflowObject(0) & " requires your approval by " & Format(DueDate(NextAppr), "Long Date")
maildoc.DueDate = Format(DueDate(NextAppr), "Long Date")
maildoc.FlowStatus = "Please follow this doclink to the " & WorkflowObject(0) & " and either approve or deny it."
End If

Does anyone have a clue where I may look? Any input is much appreciated. Thank you.

Anita






Approval Cycle (approve4.ntf) templ... (Anita Myers 26.Jan.15)
. . RE: Approval Cycle (approve4.ntf) t... (Michael J Vormw... 12.Feb.15)
. . My tip to modify script.... (Miroslav Uhlar 29.Jan.15)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite