web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Unauthorized error

(0) ShareShare
ReportReport
Posted on by 74

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"

Categories:
I have the same question (0)
  • David_MA Profile Picture
    12,978 Super User 2025 Season 2 on at

    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.

  • swebb111 Profile Picture
    74 on at

    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.

  • David_MA Profile Picture
    12,978 Super User 2025 Season 2 on at

    That is indeed very odd then. Hopefully someone else has encountered this behavior before and can offer insight.

  • Verified answer
    swebb111 Profile Picture
    74 on at

    Welp. it was a PEBCAK issue. I did not have a space between the Bearer and the Outputs from previous step:

    smw356239_0-1678909639707.png

     

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard