We are attempting to authorize an Entra application we have created to access D365 with a System-to-System connection (we have a working flow with a user connection, but System-to-System is the preferred method).
We have created the Entra APP in Dynamics and given it the following permissions:
And the following permissions from the Entra end:
We are getting an access token, but when we try to actually request records, we get back an error response:
<error xmlns="http://docs.oasis-open.org/odata/ns/metadata"><code>Unauthorized</code><message>The credentials provided are incorrect</message></error>
What are we doing wrong?