Document Selection:condition By form: Lookup Keywords
(AND)
condition By field: Field Type contains NOTIFICATION DISTRIBUTION
(AND)
condition By field: Field Keyword contains Todd D. Johnson
Action: Delete document
Agent Properties:
Trigger On event / Action menu selection
Target All documents in database
=======================================
When I run my agent from the action menu the document I’m trying to delete isn’t deleted.
The only thing I noticed is in the form selection for simple actions, it uses the form name “Lookup Keywords”, but my documents use the form Alias “Lookup”. I don’t think this would cause a problem, but it’s something I did notice.
Note: I’m setting this up on a template, once I get it working I’m going to push it out to 200+ databases.
Subject: RE: Agent using simple actions doesn’t work.
In the agents view of Designer, there’s a menu selection to test the agent. This tells you how many documents match the selection criteria. Use this to find out which clause of your search isn’t matching any documents. Actually you could also do this by going to an “all documents” view and entering the same search there.
You might want to try putting quotes around your search terms when they include punctuation or multiple words. This is a full-text search, so you could have a problem of false matches if the field contains the same words in a different order.
Subject: RE: Agent using simple actions doesn’t work.
There has been an alias for a long time on this database. I didn’t recently switch to using an alias. However, I was able to get this to work using the “test” feature recommended by Andre. I needed quotes due to a period.