Skip to main content
Solved

OData V4 POST support?

  • 3 July 2024
  • 3 replies
  • 46 views

Hi There,

I have a query which for various reasons has quite a long filter parameter passed in the URL - in fact it exceeds the maximum length for a URL (which is something like a 1000 chars).

It seems to be the idea that going forward you should be able to pass this in the body of a POST request (getting around the length limitation) and postfixing the URL with /$query

As per Passing OData query options in request body - OData | Microsoft Learn

However - when I do this with Acumatica - I get a “Method Not Allowed” error which smells of - this hasn’t yet been implemented?

Is this correct? And if so - are there plans to do so?

Many thanks,

Daniel Graham

3 replies

Userlevel 7
Badge +5

@dannygraham Correct, this is not implemented in Acumatica OData. 

There are no plans currently. You can post an idea here https://community.acumatica.com/ideas to facilitate the development. 

Userlevel 2
Badge

Thanks for the information - even when something isn’t available, it’s nice to know you’re not simply getting the query wrong.

Unfortunately - I don’t have rights to post in that location. I don’t suppose you’d be able to do so for me?

I would have thought that codewise it would be pretty straight forward - and the utility is kind of obvious.

Many thanks,

Daniel Graham

 

Userlevel 7
Badge +5

@dannygraham  see here:

 

Reply