I'm having an issue with one of my flows. I'm querying 4 different environments for Business Central Online data using http get requests, and on one of our environments I'm getting unauthorized. I was not able to reproduce the error outside of Power Automate. I used Postman and queried the exact same record and got the data successfully. Any thoughts on what to look at? Connectors look good, am able to query the environment/table with Postman, can access the business central environment by logging in to it like normal.
Error:
"Unauthorized 401; the credentials provided are incorrect"
Welp. it was a PEBCAK issue. I did not have a space between the Bearer and the Outputs from previous step:
That is indeed very odd then. Hopefully someone else has encountered this behavior before and can offer insight.
The account I'm using is a service account and has admin privileges. I'm able to log in to the environment, make changes, etc., as well as query the environment using Postman.
It means you don't have access to the environment where you are getting the error. You would need to have at least "Basic User" permissions in that environment. You will need to have one of your admins add your account to the environment.
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional