findFiles Method

A list of the files is retrieved that are contained within the folder represented by a UUID. The UUIDs of the files are returned in an array. The call can return the files in the folder, or all the files in a hierarchy of folders under that folder.

Example 1 using findFiles:

var clcFiles = objRep.findFiles(uuiFolder, uuiMimeType, blnRecursive)

Parameter

Description

uuiFolder

The UUID of the folder. On the desktop, this is the path name.

uuiMimeType

The file type to search for; for example, an Interactive Reporting document

blnRecusrive

False: examine just the folder or True: expand all sub-folders

Example 2 using findFiles:

var repLocal = env.getRepository()
var uuiFolder = env.getParameterValue("document")
if (repLocal.isFolder(uuiFolder){
    var uuiMime = env.getMimeTypeUuid("application/x-brioquery")
var clsUuid = objRep.findFiles(uuiFolder, uuiMime, true)
var a = 1
for (var it = clcUuid.iterator(); it.hasNext(); a++) {
    env.log("clcUuid[" + a + "] = " + it.next());
}
    env.expandRequestAction("document", clsUuid)
    return
}