Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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"

  • Verified answer
    swebb111 Profile Picture
    74 on at
    Re: Unauthorized error

    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

     

  • David_MA Profile Picture
    10,607 Super User 2025 Season 1 on at
    Re: Unauthorized error

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

  • swebb111 Profile Picture
    74 on at
    Re: Unauthorized error

    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
    10,607 Super User 2025 Season 1 on at
    Re: Unauthorized error

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow