Hello all,
I written the following code in Script.
//Set these variables to match your environment
var organizationURI = "reactiontest.crm8.dynamics.com"; //The URL to connect to CRM (online)
var tenant = "dynamicswebapi@reactiontest.onmicrosoft.com"; //The name of the Azure AD organization you use
var clientId = "GiKcBYCW1bECq1n7R0sInalz/LOqCKEUY+BrYQRNYYg="; //The ClientId you got when you registered the application
var pageUrl = "localhost/SimpleSPA.html"; //The URL of this page in your development environment when debugging.
var user, authContext, message, errorMessage, loginButton, logoutButton, getAccountsButton, accountsTable, accountsTableBody;
..When i click on Login it's not redirect to the Microsoft Login Page it is throwing Error.
I am unable find root cause ,i followed the all the steps which are provided by Microsoft.
2) docs.microsoft.com/.../walkthrough-registering-configuring-simplespa-application-adal-js
Thanks , Ravi Kashyap ,it help me to find ,More appropriate answer is following ...
debajmecrm.com/.../dynamics-crm-cross-origin-resource-sharing-external-application-cors
Hi,
Check this blog for the step by step - debajmecrm.com/.../step-by-step-guide-query-dynamics-crm-web-api-using-server-to-server-authentication-with-application-user
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156