Hi,
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 = deptNode.id;
queryResult = repositoryServiceWSE.queryChildren(reference);
foreach (ResultSetRow row in queryResult.resultSet.rows)
{
// Get the name of the node
foreach (NamedValue namedValue in row.columns)
{
if (namedValue.name.Contains("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?
Thanks,
Stuart