This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 16, 2012, 5:25 AM
51 Posts
topic has been resolvedResolved

Transfer of documents from one application to another

  • Category: Documentation
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: Documentation
  • Replies: 1
how to copy/transfer all the documents from one application to another application in lotus notes..?
May 16, 2012, 12:23 PM
33 Posts
Re: Transfer of documents from one application to another
I am assuming this is a one off to be done in the backend?  If so, the following lotusscript can be run in an agent
 
    Dim sess As NotesSession
   
    Dim srcDb As NotesDatabase
    Dim destDb As NotesDatabase
   
    Dim sColl As NotesDocumentCollection
    Dim sDoc As NotesDocument
   
    %REM
        Need to initialise SRCDB and DESTDB
    %END REM
   
    Set sDoc = srcDb.Alldocuments.Getfirstdocument()
   
    While Not sDoc Is Nothing
       
        Call sDoc.Copytodatabase(destDb)
        Set sDoc = sColl.getnextDocument(sDoc)
       
    Wend
 
 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal