Hi
I have been asked to create a dashboard for a business unit which uses Microsoft Teams for inbound calls, through a queue system, and outbound calls direct from the client.
An app has been registered for Power BI in our Azure tenant and the following permissions applied:
- callRecords.Read.All
- User.Read
- User.Read.All
All have been granted admin consent.
I have successfully tested retrieval of an access token using the app client/ secret via Python.
I then used the endpoint: https://graph.microsoft.com/v1.0/communications/callRecords as the URL for a web import in Power BI and set the 'Authorization' header using the token.
Note: I have also tested using a full M query which includes the steps to retrieve a token from https://login.microsoftonline.com/" & <tenantId> & "/oauth2/v2.0/token and use this to make the API call.
On committing, either returns a bad request error.
If I remove the callRecords element of the above URL, there is no error and I get back a list of endpoints, including the one already noted above, available within communications.
I would be grateful for any help to resolve this so I can obtain the data I need to complete the required dashboard.
Thanks