Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18030

Issues with Custom Connector to Microsoft Graph API

$
0
0

Hello all,

 

I'm having some issues using a custom connector to get what I want out of the Microsoft Graph API. Essentially, what I am looking to do is take the "Email Activity User Detail" report and turn it into a nice Power BI report for some people to use. The URL for that report is as follows:

 

https://graph.microsoft.com/v1.0/reports/getEmailActivityUserDetail(period='D7')

 

In order to create this custom connector, I have been using the following example as I'm not very familiar with the use of Power Query, nor the Graph API:

 

https://github.com/Microsoft/DataConnectors/blob/master/samples/MyGraph/README.md

 

I have created the connector and can connect to the API and everything, but rather than return me the data, all the query does it return me a byte array I can't seem to do anything with:

 

image.png  

 

From looking at fiddler traces, the actual data I want is being picked up along the way, but it looks like the Graph API uses a redirect URL to the download, which I'm not sure my Power Query code is handling. I think it may just be returning the redirect URL rather than the actual data.

 

Further to this, my query has no code to handle the NextLink if it goes over the number of returned rows (I think 200?), so I imagine it will not return the full dataset once I do get it working. How is this best handled?

 

Any assistance would be greatly appreciated.


Viewing all articles
Browse latest Browse all 18030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>