Run Search and Add Document
How it works
There are times when GlobalCapture needs to bring documents back into a capture flow from GlobalSearch. This sample works off of the search and email example, and brings a document back into capture.
Get a search’s id by search name.
Get the search’s details.
Execute the search. This example passes no parameters. The first document’s ID and hash are set to the hash and id process fields.
Retrieve the file and add it into the process.
The document can now participate in any additional document related steps like email, other releases, etc.
If you looped through the results adding all files from the result, the output would be a merged result of all documents in the set.
Â
Download the package
Â
Â