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 :
Customer experience | Sales, Customer Insights,...
Unanswered

API Authentication

(0) ShareShare
ReportReport
Posted on by 204
Hi,
 
together with one of our customers we want to share data from Microsoft NAV to MS CRM (both on-premise).
 
Now we're struggling with the authentication. From an C# application this part is no problem, using the Microsoft SDK and tooling classes, and is as easy as:
using (var client = new CrmServiceClient(new NetworkCredential(/<Username>/, /<Password>/, /<Domain>/), /<Base-Url>/, //, /<Org>/, useSsl: true)){    if (client.IsReady)    {        var who = client.Execute(new WhoAmIRequest());    }}
How would we go about it without SDK/tooling? Let's say if we tried with HttpClient or from JS or something else, would that be possible?
 
We're using ADFS, so I guess Basic Authentication (as described here: Authenticate to Dynamics 365 Customer Engagement with the Web API (Developer Guide for Dynamics 365 Customer Engagement) | Microsoft Learn) is not possible? At least our tests were not successful.
 
Most examples I come about are mentioning a clientId, but the SDK-example doesn't use one either, so I think I'm missing something?
 
If anyone has an idea or working example, please let me know.
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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans