Handling special character in Odata call – D365FO

I have already shared the posts on Odata calls – post1, post 2 and post 3

OData often brings its own set of challenges, but every issue becomes a learning opportunity.

I had a requirement to include the InventDimId in the API request, and I encountered an error specifically when sending the identical InventDimId value that the system expected.

For instance, I passed the InventDimId in the below GET Request

https://FOURL.dynamics.com/data/InventDimBiEntities?$filter= inventDimId eq '#00000001501EF9D3'

The special characted # was throwing the error

To fix this, use the below code

https://FOURL.dynamics.com/data/InventDimBiEntities?$filter= inventDimId eq '%2300000001501EF9D3'

The code # is replaced with %23 which fixed the issue and I got the result.

Original Post https://anithasantosh.wordpress.com/2026/03/02/handling-special-character-in-odata-call-d365fo/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
April 2026
MTWTFSS
   1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30    
« Mar   May »
Follow
Search
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...

Discover more from 365 Community Online

Subscribe now to keep reading and get access to the full archive.

Continue reading