Hi I was trying to refresh dataset using the Power Bi API and getting 401 Unauthrorized error message.
I was able to get the access tone by passing the parameters --(grant_type : "client_credentials"), (client_secret:XXXXXX)
The application is registred as Native client in Azure portal and granted Read/Write Dataset permission but still i was getting the error message -"The remote server returned an error: (401) Unauthorized."Please let me know if i need to post my code
Thanks in advance