Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I get 403 forbidden whenever I try to get DatasetInfo using
var dataset = pbiClient.Datasets.GetDatasetByIdAsync(report.DatasetId);
but when I include the GroupId in returns data successffuly
var datasetx = await pbiClient.Datasets.GetDatasetByIdInGroupAsync("xxxx-xxxx", report.DatasetId)
Solved! Go to Solution.
@Anonymous There's a slight difference between the two methods:
So if report.DatasetId does not exist in My Workspace you get that error.
Did this help you or did I answer your question?
Then please give kudos or mark my post as a solution!
My blog: nickyvv.com
Twitter: @NickyvV
@Anonymous There's a slight difference between the two methods:
So if report.DatasetId does not exist in My Workspace you get that error.
Did this help you or did I answer your question?
Then please give kudos or mark my post as a solution!
My blog: nickyvv.com
Twitter: @NickyvV
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.