copy - Lotus Notes 7 - scheduled Agent for copying parent & response docs. without changing UNID -
i asked question ( lotus notes 7 - copy / move docs. ( parent & response docs ) without changing unid ? ) , received answer helped me lot! knut hermann!
it works ok, agent working on selecting documents. wondering if it's possible create schedule agent runs 1 time per day? means user shouldn't manually selecting documents , run agent.
thank time , sharing info!
yes, can. here. can set schedule in agent's properties:
you can select documents selected. in example database's documents selected. if select "none" it's select documents in agents's code in e.g. notesdocumentcollection.
for case easiest select documents , add if statement test if document not yet in target database:
set docsource = col.getfirstdocument() while not docsource nothing if doctarget.getdocumentbyunid(docsource.universalid) nothing set doctarget = dbtarget.createdocument() call docsource.copyallitems(doctarget, true) doctarget.universalid = docsource.universalid call doctarget.save(true, false) set docsource = col.getnextdocument(docsource) end if wend
Comments
Post a Comment