Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

401 Authorisation Error on D365

(0) ShareShare
ReportReport
Posted on by

I've built a flow that passes data from PowerApps to a note against a record in Dynamics 365. When I execute the flow as myself it works completely, fine, but when other users execute it, a 401 authorisation error occurs on the first D365 step. I have shared both the app and the flow with these users. Any help regarding this is greatly appreciated, and to aid your understanding of my problem, I've added the error that Flow provides:

{
  "status"401,
  "message""Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.",
  "source""dynamicscrmonlineconnectionprovider-northeurope.db3-ase-001.p.azurewebsites.net",
  "debugInfo""clientRequestId: ab114aa6-0dc6-40cf-ba0a-1ede65931fd8"
}
 failure summary.PNG

 

Thanks,

Tom

  • tly Profile Picture
    400 on at
    Re: 401 Authorisation Error on D365

    I noticed this post was from 2017 but I'm having similar 401 errors as well.

    I'm trying to replace Dialog boxes (which will be obsolete soon) by recreating the functionality in a PowerApp. There's a button on the PowerApp that runs a PowerAutomate flow. The flow will run perfectly fine if I delete all references to CDS connections (using "current environment" connector). If I include CDS connections, it will throw a 401 error.

    I've tried clearing cache and restarting browser. I've tried logging off all sessions and relogging back in. I've completely deleted my Flow and rebuilt it. I have other flows that are non-Powerapps-triggered that use the CDS connection--they have no issues.

    A Google search shows many resources on 401 errors, but every one of them has a different solution ranging from: changing password, reestablishing connections, recreating flow, logging off and logging back on, turning on some Async mode on PowerApps, etc. I have been working on Flows, Dynamics 365, and PowerApps separately for almost 2 years with no issues; so issue is completely befuddling.

  • v-xida-msft Profile Picture
    on at
    Re: 401 Authorisation Error on D365

    Hi @Clayton0903,

     

    The 401 error is an authentication error, you could usually fix an authentication error by updating the connection. Please check the following article to fix your authentication error:

    Authentication failures

     

    I have reproduced the issue on my side, when the others run PowerApps app for first time that shared by you, they would receive a dialog notification:11.JPG

     

    The PowerApps app would access Dynamics 365 with current login account if the other uses click “Allow”. If the other uses don’t have same Organization Name with you in Dynamics 365, the error would occur:12.JPG

     

    Please check if the other users have same Organization Name with you in Dynamics 365.

     

    Best regards,

    Kris

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,594 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow