Home > Domino Tips > Developer > Agent > A Lotus Notes approval reminder agent
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

AGENT

A Lotus Notes approval reminder agent


Steve Camp
11.14.2006
Rating: -3.62- (out of 5) Hall of fame tip of the month winner


Lotus Notes and Domino tips, tutorials and how-to articles
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


The agent below reminds recipients of a Lotus Notes document that it is past due for their approval.

 REM "Send reminder of new 
requests to the Approver"; REM 
"Schedule is daily, not on weekends";

SELECT Form = "OSR2" 
& cDocStatus = "New";

REM "Initialize and increment Reminder counter"; 
jnReminders := @If(@IsAvailable(nReminders); 
nReminders + 1; 1) ; FIELD nReminders := 
jnReminders ;

REM "Write doc history";
jcDocHistory := "Reminder #" + @
Trim(@Text(jnReminders)) +
     " of Office Supply Requisition emailed to " +
      @Name([Abbreviate];cApprover) +
     " on " + @Text(@Now;"S2") ;
@SetField("cDocHistory"; 
cDocHistory : jcDocHistory) ;

REM "Add agent tracking fields." ;
FIELD dNotified := dNotified ;
@SetField("dNotified";
           @If(dNotified = ""; @Now; dNotified  : 
@Now)); FIELD cLastAgent := cLastAgent ; 
jcLastAgent := "Remind Approver" ; 
@SetField("cLastAgent"; 
@If(cLastAgent = ""; jcLastAgent;
   cLastAgent  : jcLastAgent));

REM "Email reminder";
jcSendTo :=@Name([Abbreviate]; cApprover); 
jcCC := "" ; REM "For testing, add a blind carbon copy" ;
 jcBCC := ""; jcSubject := "Reminder: Requisition for "  
+ cAssociate ; jcBody := 
"You have not responded to the Requisition for "  +
  cAssociate + ". 
Click the doclink at the bottom of this message!" ;

@MailSend(jcSendTo; jcCC; jcBCC; jcSubject; jcBody;
           ""; [IncludeDoclink])

Do you have comments on this tip? Let us know.

This tip was submitted to the SearchDomino.com tip library by member Stevenson Campbell. Please let others know how useful it is via the rating scale below. Do you have a useful Lotus Notes, Domino, Workplace or WebSphere tip or code snippet to share? Submit it to our monthly tip contest and you could win a prize.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


RELATED CONTENT
Lotus Notes Domino Agents
Open documents in Lotus Notes from the Web without a UNID
Fix and update Lotus Notes documents with limited access
Verify scheduled agent status with Domino Extensible Language (DXL)
Top 10 Lotus Notes Domino programming and development tips of 2007
How to export data from a Lotus Notes database to a CSV file
Must-know Lotus Notes Domino agents -- 10 tips in 10 minutes
Enable or disable scheduled agents without opening the Lotus Notes database design
Creating custom views in Lotus Notes databases
Editing fields in a Lotus Notes view with Ajax
Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server

Agent
Open documents in Lotus Notes from the Web without a UNID
Fix and update Lotus Notes documents with limited access
Verify scheduled agent status with Domino Extensible Language (DXL)
How to export data from a Lotus Notes database to a CSV file
Enable or disable scheduled agents without opening the Lotus Notes database design
Creating custom views in Lotus Notes databases
Editing fields in a Lotus Notes view with Ajax
How to automatically create a backup copy of your Domino Directory
Export Lotus Notes documents to Microsoft Word via Internet Explorer
A bevy of Notes/Domino development tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 1999 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts