Vault API - how to search for particular file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to check if the file name already exists in Vault. I create a new string with new file name. Tried to use FindFilesBySearchConditions() with the following settings:
Autodesk.Connectivity.WebServices.SrchCond searchCondition = new Autodesk.Connectivity.WebServices.SrchCond();
searchCondition.PropDefId = 95;
searchCondition.PropTyp = PropertySearchType.SingleProperty;
searchCondition.SrchOper = 3;
searchCondition.SrchTxt = "544-0002-Nebojsa_2.xlsx";
but I am getting no hits although there is one file with this name. I have read a few posts here and online about using FindFilesBySearchConditions() but still need clarification. What exactlt I need to do in setup to successfully use FindFilesBySearchConditions() in my file search? If you can provide a code example it would be appreciated. Thank you.