Process selected document from a view

Currently I need to use an agent to process selected documents from a view. How do I know which documents are selected (selection is depend on user)? Normally I use
Set dc = db.AllDocuments or
Set dc = view.GetAllDocumentsByKey(keys)
But this time I've to make it in another way. Does Notes has any built-in method for this purpose? TQ.
cheongkaboAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
scottrmaConnect With a Mentor Commented:
Set dc = db.UnprocessedDocuments

will return to your document collection variable (dc) a collection of all the selected documents, if the agent is set to run on selected documents.

Look in the Designer Help for more information on the UnprocessedDocuments property and what it returns based on what your agent is set to run on.

Regards,

Scott
0
 
pratiganCommented:
If your running an agent against a view, you can have the view display exactly what doucments you want and then have the agent run against all documents in the view.  This allows you more flexibility with formulas and scripts.
0
 
cheongkaboAuthor Commented:
Dear scottrma

Thanks for guidance. This solution is what I'm looking for. TO pratigan, anyway thanks for ur suggestion as well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.