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

REST API Identification of Import vs Direct Query Datasets

$
0
0

I am using the C# SDK and the REST API to do a lot programmatically with a large number of reports, created in Power BI Desktop and connected to databases through either Direct Query or Import Mode.  Since there is different functionality between these two modes, I want to be able to identify whether a particular dataset is Direct Query or Import.  So far my only way to detect this is to attempt a method that works with Direct Query and, if it throws an exception("Invalid dataset" or "Bad Request"), try the method for Import mode.  That should not be the best way to determine the dataset mode, but I'm not sure how else to do it.  Are there any good ways to identify the difference between Direct Query and Import datasets without relying on exceptions?


Viewing all articles
Browse latest Browse all 17892

Trending Articles



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