Notifications
Announcements
No record found.
Hi,
I wonder if anyone has tried Github sample for Powerapps please? I am using one of the sample therefore getting error when trying to authenticate to Dynamics 365. I have posted the error details on the link below..
https://github.com/microsoft/PowerApps-Samples/issues/179
"The remote server returned an error(401) . Unauthorised"
Any idea what is wrong here?
Thanks
Hello,
The code is valid. According to the message you posted you haven't provided the valid connection string. Can you please provide the connection string you used?
Check if you are providing correct Username, Password & CRM URL.
This is the connection string
<add name="Connect" connectionString=" AuthType=OAuth; Username=umer@XXXXX; Url=XXX.crm11.dynamics.com; AppId=XXXX-XXXX-XXXX-bea6-XXXXXXX;
RedirectUri=https://localhost;
TokenCacheStorePath=c:\MyTokenCache;
LoginPrompt=Auto"/>
Also added below the debugging step after the prompt for password and the second factor authentication (code)
It is correct..
According to the description your configuration is wrong - docs.microsoft.com/.../mt608573(v=crm.8)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 70 Super User 2025 Season 2
Gerardo RenterÃa Ga... 33 Most Valuable Professional
Daniyal Khaleel 32 Most Valuable Professional