Dynamics sales, search contacts api error "The query parameter [REDACTED] is not supported"

uzair aslam 20 Reputation points
2025-03-23T02:13:40.1933333+00:00

Hi everyone, We’ve integrated Dynamics Sales (CRM) into our web app, and one of the APIs we use is the Search Contacts API including when using the $filter query parameter along with contains() method, it works fine generally.
However, for one of our customers, when they try to search contacts using the same API with a $filter query, it returns this error:
“The query parameter [REDACTED] is not supported”

Note: The word [REDACTED] is returned exactly like this—I didn’t modify the message.
This works fine for all other customers, and I’m unable to reproduce it in our dev environment. Any idea what might cause this error in a specific CRM environment? I am wondering if this could be a limitation or setting in the customer’s Dynamics environment?

Would really appreciate any insights or suggestions for how to debug this further. Thanks in advance! 🙏

Here is the original request:

{ "status": 400, "method": "GET", "url": "org_url/api/data/v9.2/contacts?$filter=contains(yomifullname,'REPLACED CUSTOMER DATA WITH THIS')", "headers": { "cache-control": "no-cache", "allow": "OPTIONS,GET,HEAD,POST", "content-type": "application/json; odata.metadata=minimal", "expires": "-1", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", "odata-version": "4.0", "date": "Thu, 13 Mar 2025 20:13:56 GMT", "content-length": "91", "x-ms-service-request-id": "fe3e1f64-f964-4b2c-b7f1-a9afb24ad40a", "x-ms-ratelimit-time-remaining-xrm-requests": "1,200.00", "x-ms-ratelimit-burst-remaining-xrm-requests": "7999" }, "body": { "error": { "code": "0x80060888", "message": "The query parameter [REDACTED] is not supported" } } }

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vezina, Symon SV [NC] 0 Reputation points
    2025-04-01T18:29:31.2166667+00:00

    I encountered a similar issue—'The query parameter [REDACTED] is not supported'—while working with my PowerShell script. In my case, the problem was that the dollar sign in $select or $filter needed to be escaped using a backtick ( ` ) inside a double-quoted string. In PowerShell, the $ is a special character that indicates a variable, so without escaping, PowerShell attempts to evaluate $select or $filter as a variable inside double-quoted string.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.