# Sending forward slash in query filters

**URL:** <https://community.postman.com/t/sending-forward-slash-in-query-filters/62149>\
**Category:** Help Hub\
**Tags:** filters\
**Created:** [June 12, 2024, 8:27pm UTC](https://community.postman.com/t/sending-forward-slash-in-query-filters/62149 "2024-06-12T20:27:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![buzzwick](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@buzzwick](https://community.postman.com/u/buzzwick)\
**Post date:** [June 12, 2024, 8:27pm UTC](https://community.postman.com/t/sending-forward-slash-in-query-filters/62149/1 "2024-06-12T20:27:22Z")

</div>

Our client uses document numbers (“docNo”) that in some cases contain the forward slash (/) character. So far we have not been able to come up with a formulation that does not get a Bad Request - Error in Query Syntax response. Our URL looks like this:

[https://nav02.xxxxning.com:11078/NAVDEMO-WS/ODataV4/Company(‘DEMO%20-%xxxxxx%20xxxxxxx’)/portalDocuments(docNo=‘74486/16’,docType=‘ACKLEGACY’)](https://nav02.xxxxning.com:11078/NAVDEMO-WS/ODataV4/Company('DEMO%20-%25xxxxxx%20xxxxxxx')/portalDocuments(docNo='74486/16',docType='ACKLEGACY'))

We have tried substituting %2F for the /, no luck. We have tried moving the filter values to query parameters or the request body, no luck (the receiving program needs them to be query filters, because it needs to pick those filter values up and use them in internal functions).

Is there in fact some way to send values containing forward slashes as query filter values?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [June 13, 2024, 11:32am UTC](https://community.postman.com/t/sending-forward-slash-in-query-filters/62149/2 "2024-06-13T11:32:59Z")

</div>

It looks like you are using ODataV4, so I would have thought that %2F would be the correct way to go.

It will be down to the API whether it supports escape characters or not.

So I guess this is a question for the supplier\developer of the API.

---

<div class="post-metadata">

**Author:** ![buzzwick](https://avatars.discourse-cdn.com/v4/letter/b/e36b37/32.png) [@buzzwick](https://community.postman.com/u/buzzwick)\
**Post date:** [June 13, 2024, 12:54pm UTC](https://community.postman.com/t/sending-forward-slash-in-query-filters/62149/3 "2024-06-13T12:54:48Z")

</div>

Actually that introduces an interesting angle–the developer of the API. Which in this case would be Microsoft. It just might be that their API does not support this encoding. Extremely limited resources for support/explanation/documentation from MS on this topic (and on this version of their software), but user community might come up with something. The last time we had this problem, ChatGPT came up with the answer: “That version did not support that feature; it only became available in 2018.” Thanks much for the suggestion!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [July 13, 2024, 12:55pm UTC](https://community.postman.com/t/sending-forward-slash-in-query-filters/62149/4 "2024-07-13T12:55:10Z")

</div>

Closed on July 13, 2024, 12:55pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
