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:

enter image description here

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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -