how to see document that

how can i see if document has been processed by an agent

eg. copy all document into new view if they have been processed by an agent

thanks
Karen

karen@vis.is
karen021897Asked:
Who is Participating?
 
jschwarzConnect With a Mentor Commented:
As sk5t mentioned, it will be easier to do using formula language, using the example he provided, than in LotusScript.  But, if you must have an outline of the LotusScript code, following is an example of the code you might use in a button:

dim doc as NotesDocument
dim item as NotesItem

set doc=Source.Document
set item=doc.ReplaceItemValue_("LastProcessedOn", Today)
0
 
karen021897Author Commented:
you may send me the code, please
0
 
karen021897Author Commented:
you may send me the code, please
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
karen021897Author Commented:
you may send me the code, please
0
 
jschwarzCommented:
There are really only two options.  The first is to mark the document from within the agent by setting a field (e.g., ProcessedByAgent := "Yes").  The other is to use the UnprocessedDocuments property of NotesSession, along with the UpdateProcessedDoc method.  I suggest you read about them.
0
 
karen021897Author Commented:
do you have any example
0
 
sk5tCommented:
You'll probably have best results by adding a hidden field to your documents, and updating it in the agent's code -- something like "FIELD LastProcessedOn := @Date(Today)" as part of the agent.  Then you can do whatever you like with this information in the views.

jschwarz is correct, that you can access some built-in properties through LotusScript, but this is perhaps more useful during complex agent execution.

Remember, documents are never "copied into a view."  Every database data document is "in" every view all the time, if it meets the selection criteria...
0
 
karen021897Author Commented:
i will be glad if you have the Lotus script example

Thanks
0
 
karen021897Author Commented:
Thanks
0
All Courses

From novice to tech pro — start learning today.