AnsweredAssumed Answered

Searching for files in a folder by property

Question asked by on Aug 8, 2007
Latest reply on Aug 13, 2007 by

I'm trying to call the web services to search a folder to find a file(s) which match a certain criteria.

The property on the file is something like:

Name: {ORS}tenantref Value: 259499

I used the following code to find the folder I need (c#.NET):

    reference = new Reference();
    .store = spacesStore;
    reference.uuid =;

    queryResult = repositoryServiceWSE.queryChildren(reference);

    foreach (ResultSetRow row in queryResult.resultSet.rows)
                // Get the name of the node
                foreach (NamedValue namedValue in row.columns)
                    if ("name") == true)
                        if (namedValue.value.Equals(folderName, StringComparison.CurrentCultureIgnoreCase))

I'm now stuck tring to find the file I want in the folder, I would prefer to do this using a query then looping through all of the files as there may be loads of files.

Can any one provide an example showing how to do this?