Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Integrating Dynamics and SQL to build reports

Posted on by
Hi All,
 
I am trying desperately to integrate Dynamics into a SQL server, so I can include it in my data model (this model contains other data sources thats why I need the dynamics data in SQL).
 
I tried to set up a connection as a linked service in Azure Data Factory, and followed this process:
  1. Registered an application in Azure AD for Dynamics CRM (PowerBi-Reporting_Dynamics-CRM)
  2. Granted API permissions in Azure AD
  3. For Dynamics CRM, Azure Key Vault, Data Export Service for Microsoft Dynamics 365 (As per the current Azure set up, we can only use user-impersonation)
  4. Generated the client secret
  5. Added this in Azure Key Vault using generated info
  6. Added Dynamics CRM in Data Factory as a linked service, tried using different authentication methods (Office 365- password login and Key vault, Service Principal - Key, using ID and KEY from created application we registered)
But got this error:

Failed to connect to Dynamics: Unable to Login to Dynamics CRM: Invalid Login Information : The HTTP request was forbidden with client authentication scheme 'Anonymous'.
The HTTP request was forbidden with client authentication scheme 'Anonymous'. => The remote server returned an error: (403) Forbidden.Unable to Login to Dynamics CRM
Unable to Login to Dynamics CRM
The creator of this fault did not specify a Reason.


Is anyone able to support on this?

Thank you so much!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans