Hi,tarun
406 error often indicates the server cannot produce a response matching the list of acceptable values.
You can check the F12->Network->Request Header->accept, check whether it can accept the type of your passing data.
public class SalesToolsController : ODataBaseController
What is your ODataBaseController? Do you have some custom in it, I changed it to ODataController and used your shared code, everything
works well, so can you share this class?
And this is my demo result, query id and name when key=1:
Best Regards,
Jerry Cai
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.