Notifications
Announcements
No record found.
Hello Community,
I try to request data via WebApi from our CRM System (New/modified entry of the last 15 minutes). The URL looks like this:
I retrieve a Server Error 400 - the research I have done and the solutions I found were not quite clear.
Maybe someone can help me out.
Best,
Sven
the datetime operators you are using don't need the single quote (') before and after the value, also the time value is not the one you usually receive (but should work) so your url should look like this one:
https:/url-of-company.com/api/data/v9.2/accounts?$filter=modifiedon%20le%202022-02-22T10:51:00.000Z%20and%20modifiedon%20ge%202022-02-22T10:36:00.000Z
if you need to build and test such queries you can use Dataverse REST Builder (you can find the link inside my signature)
hope it helps
Hello Guido,
thanks for you reply, but the error 400 still persists.
My URL looks now like this: company-url.dynamics.com/.../EntityDefinitions
I tried using Datavers REST Builder, but I was not able to get a connection to the Dataverse even if it looks like a connection was established once.
Thanks and all the best,
EntityDefinitions is an endpoint to get the metadata, not actual records.
Keep in mind that Dataverse REST Builder is available as XrmToolBox tool and if doesn't work inside XrmToolBox you can install it inside your instance as managed solution. inside the repo readme there is a youtube video and a blog post link on how to install and use it.
Error 400 means bad request, usually means that the url is not written correctly
Hi,
sorry, my fault: company-url.dynamics.com/api/data/v9.2/EntityDefinitions?$filter=modifiedon le 2022-02-22T12:26:00.000Z and modifiedon ge 2022-02-22T12:11:00.000Z
company-url.dynamics.com/api/data/v9.2/EntityDefinitions?$filter=modifiedon le 2022-02-22T12:26:00.000Z and modifiedon ge 2022-02-22T12:11:00.000Z
I tried to use it with Visual Studio Code.
BR,
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 108 Super User 2025 Season 2
Jimmy Passeti 50 Most Valuable Professional
Gerardo RenterÃa Ga... 49 Most Valuable Professional