Skip to main content
FORUM PLAN UPDATE: Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next
Subject: send mail with doclink on webquerysave
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Windows
Release: 8.5.3
Reproducible: -Reproducibility-

Hi, I'm trying to create a mail during webquerysave which should append a doc link to the document being saved but it's not doing it. The mail is sent but no doc link.


here's the code..

Sub Initialize
Dim db As notesdatabase
Dim session As NotesSession
Set session = New NotesSession
Dim doc As NotesDocument
Dim maildoc As NotesDocument
Set db=session.currentdatabase
Set doc = session.DocumentContext
Set maildoc=db.createdocument

Dim rtitem As NotesRichTextItem
Set rtitem = New NotesRichTextItem(maildoc, "Body")

Call rtitem.appendtext(" A new document has been created for...")
Call rtitem.addnewline(2)

Call rtitem.appendtext("Name: " +doc.Name(0))
Call rtitem.addnewline(1)

Call rtitem.appendtext("Branch: "+doc.branchName(0))
Call rtitem.addnewline(2)

Call rtitem.appenddoclink(doc, "Link to document")

maildoc.subject="New request"
Call maildoc.send(False,"")

End Sub

Feedback number WEBBAZGLB8 created by Joey lawrence on 06/06/2018

Status: Open

send mail with doclink on webquerys... (Joey lawrence 6.Jun.18)
. . Probably because doc isn't yet save... (Scott Leis 7.Jun.18)


Search this forum

Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools

RSS Feeds

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


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


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