Hi all,
I'm working on a flow that will trigger a post request toward a custom Business central OData API.
I'm having issue configuring the Oauth in power automate, i tried with two different methods but all I get is a 401 unauthorized ("The credentials provided are incorrect") error.
This first method I tried was by using a Send http request block with OAuth Active Directory authentification :
The second method i tried was by retrieving the token myself with a post method toward my /token url and then using this token in an Authorization header
The post method to obtain the token works fine but i get the same error when posting :
<error xmlns="http://docs.oasis-open.org/odata/ns/metadata"><code>Unauthorized</code><message>The credentials provided are incorrect</message></error>
The request works fine in postman with an oauth 2.0 authentification method.
Any idea of what could be the issue ?
Thanks