Forum Discussion

Harineeeeeeee's avatar
1 year ago
Solved

How to access Dynamics CRM API from PowerBi using Client Id , Client secret and tenant Id using

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...
  • lbendlin's avatar
    lbendlin
    1 year ago

    You can validate tokens at jwt.io

     

     

  • v-saisrao-msft's avatar
    1 year ago

    hi Harineeeeeeee 

    As from our previous conversation, to verify the access token, you can use jwt.io. When you authenticate using the service principal, you should receive an access token. Go to jwt.io and paste your access token into the "Encoded" field. The tool will decode the token and display its contents. Look for the "scp" section in the decoded token to ensure it includes the necessary permissions to access the Dynamics CRM API. Generating a login bearer token first and then using that token in your API calls can help resolve the issue by ensuring you have a valid token with the required permissions. 

     

    Probably you can generate and login bearer token first and then using that token in your API calls can help resolve the issue. This approach ensures that you have a valid token with the required permissions to access the Dynamics CRM API. By including the bearer token in the Authorization header of your API calls, the API can verify that you have the necessary permissions to access the data. 

    If this post clears your doubt, please give us Kudos and consider marking Accepting it as a solution to guide other members in finding it more easily.