SharePoint / SharePoint/sp-dev-docs

ODATA filtering based on substringof()

Open
#9,823 2 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since May 26, 2025.

feature-request Needs: Triage :mag: sharepoint-developer-support
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Hi all,
I tried a lot of ways how to create ODATA filter based on substringof function. But I need the oposite function as I need to filter out all item include 'archive' in FileDirRef property, so kind of 'not substringof('archive',FileDirRef). But it isn't a correct syntax of filter query.
I see on this page you can use 'ne' operator, but this also doesn't work for me. Or at least I can't use it.
Any help on that?
BR,
K.Z.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.