Forum Discussion

pennyhoho117's avatar
pennyhoho117
Helper IV
1 year ago

seeking help to retrieve Power BI Dataset data by Power API

i have created a workspace and granted admin right to the Azure app account.

and i have send API :  https://api.powerbi.com/v1.0/myorg/groups/89f9ce17-e8e3-433c-b419-6b2b6d87273c/datasets/8360b63e-a13f-49a7-8cc2-b03f7062e773/executeQueries

 which reqest header:  data = {
"queries": [
{
"query": "EVALUATE VALUES(TestRedshiftRefresh)"
}
]
}

 

where TestRedshiftRefresh is the dataset name, but i received error: 

{'error': {'code': 'PowerBINotAuthorizedException', 'pbi.error': {'code': 'PowerBINotAuthorizedException', 'parameters': {}, 'details': [], 'exceptionCulprit': 1}}}

 

Can any people help me? Thanks

6 Replies