Hello,
I am not sure if this is even the right place to ask this but still believe that there are lots of experts who might help me.
I am setting up API call with OAuth2 from Business Central but the API does not allow the redirect to any site on BC itself (to retrieve authorization code) and I need to find a URI outside of BC. The URI which is used by custom connectors of Power Apps - https://global.consent.azure-apim.net/redirect - can this be usable in such cases? Calling this API from Power Apps using a custom connector was successful and I wonder if I can also use this to call API from Business Central. I tried so many times but only got the error saying
"{"Message":"The request is invalid.","ModelState":{"consentInfo":["No consent server information was associated with this request."]}}" and maybe something is missing or this is not possible at all.
If anybody knows how to resolve this issue, please advise.
Thank you.