March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I am trying to fetch data from Dynamics CRM API to fetch audit info
https://community.dynamics.com/blogs/post/?postid=f40996bf-52a9-417c-8294-bf35b1f53a84
Above is the blog I referred to get API Info, the sample API I used is as,
https://{orgname}.crm.dynamics.com/api/data/v9.2/audits
Also cross verified that audits logs are enabled the APi works perfect in Dynamics CRM but when I try using this APi in PowerBI which has service principal authentication method gives me error saying no access to target data source?
how to resolve this?
should we need to Enable Control user access to environments especially with security groups and licensee?
please assist on how to consume Dynamics CRM API in PowerBI
Thanks for posting in the Microsoft forum community.
As per your query about accessing Dynamics CRM API from PowerBi using Client Id, Client secret, and tenant Id. Here are some steps to resolve your issue:
If my response addressed your question, please mark my post as a solution to assist others.
Additionally, if you find my response helpful, consider giving "Kudos".
how did you register the app permission scope? delegated?
@lbendlin When you say app permission scope, is that in Dynamics CRM?
if yes how to do that ?
No, in Azure, when you created the app that gave you the client ID and secret
Yes that gave me the client id and client secret and when I query data tables using dataverse for the same environment of dynamics crm using the service principal authentication it works only for the API it didn't work
check the access token ( at jwt.io ) - most likely the "scp" (scope) section is missing or incomplete.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
23 | |
12 | |
11 | |
8 |
User | Count |
---|---|
46 | |
44 | |
24 | |
12 | |
10 |