Unable to get list of datasets in power bi using RestApi?

前端 未结 2 1156
后悔当初
后悔当初 2021-01-27 23:44

enter image description hereAfter getting Access token, by sending GET request to

https://app.powerbi.com/groups/me/datasets/

by adding access

2条回答
  •  深忆病人
    2021-01-28 00:25

    It appears you may be using the wrong endpoint. The documentation for the Rest API is here: https://docs.microsoft.com/en-us/rest/api/power-bi/datasets

    To get a list of data sets you either need to use this endpoint (note there is no "group" designation in URL)

    GET https://api.powerbi.com/v1.0/myorg/datasets
    

    Or this one (which is data sets for a specific group -- group ID is required)

    GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets
    

    You appear to be using the endpoint that returns groups. I think "/me/datasets" must be getting ignored

    GET https://api.powerbi.com/v1.0/myorg/groups
    

    Hope this helps

提交回复
热议问题