I have an agent "a" that creates a document in a view.
I have another agent "b" that runs on selected documents in the view.
What i want to do is make a button to run agent "a" to create a document and then run agent "b" on the document created.
I have created a button to run agent "a" then agent "b". But when the document is created by agent "a" it is not selected, so agent "b" will run on whatever document is currently selected and not the required new document.
I need to be able to select or set focus on the document created so that agent "b" can run on it. Does anybody know how to select the required new document?