I'm building a search input that would use the API to look for users and use that information for something else.

Right now I'm using this:


And it gives me the user I'm looking for, however some users might not search using the last name of the person (Title being in the form of: Last Name, First Name). I was wondering if there's a way to make substringof work as a filter in this situation?

1 Answer 1


Yes you can:

$filter=substringof('lastOrFirstName', Title)

Possibly you should switch places of the parameters to substringof, not certain of the ordering there.

Great intro: http://msdn.microsoft.com/en-us/magazine/dn198245.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.