Copy To Database w/Descendants Question

I have created an agent using a simple action that copies certain documents from one database to another based on a tested condition. This is working great but I also want to also move the documents child documents associated with the parent documents. I am very familair with using the @descendants function when working with views but don’t know how to apply that to this agent. I can’t use additional agent document selection statements because all the fields that are used in the test are only kept in the parent document. Any suggestions?

Subject: Copy To Database w/Descendants Question

Make a view with those conditions and make sure that, you will have the right documents in the view along with their responses. Then run simple action without any conditions in it because you already have them in the view. Select all documents by pressing Cntl a’.

Run the agent, so that all will be copied to other database.

Make sure the agent do not have any conditions in it. You have to have another agent this way.

Hope this helps.

Subject: RE: Copy To Database w/Descendants Question

Narasimhan,

Your idea works great if I run the agent “On Event” (manually) but I need to run it “On schedule” - nightly. If I choose to run it “On Event” then there is a “Target” choice of All documents in view. But if I run it “On Schedule” the only choices I have for Target are either “All new & modified documents” or “All documents in D.B.” neither which are what I need. Is there not a way to run it “On Schedule” and target only “All documents in view”? Thanks.

Subject: RE: Copy To Database w/Descendants Question

No, but you can use the Search to select the same documents that appear in the view.