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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Host MS Dynamic CRM Integrated Asp .Net Web Application in Azure API

(0) ShareShare
ReportReport
Posted on by 10

Hello All of You,

My Name is Vijay Dantani.

I am using "AuthType = OAuth " authentication to connect dynamics CRM online in .net application and I have hosed webform application in azure API App. But after deploying the app it is not connecting to the CRM.

Authentication Code : 

public string GetCRMService()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

string url = "https://test_abcd123.api.crm8.dynamics.com/XRMServices/2011/Organization.svc";

string userName = "test@test_abcd.onmicrosoft.com";

string password = "Test@12345;

string conn = $@"
Url = {url};
AuthType = OAuth;
UserName = {userName};
Password = {password};
AppId = 51f81489-12ee-4a9e-aaae-a2591f45987d;
RedirectUri = app://58145B91-0C36-4500-8554-080854F2AC97;
LoginPrompt=Auto;
RequireNewInstance = True";
return conn;
}


Please give me a solution.

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans