Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Get Datasets ID by name over Rest API

Hi All,

 

I need to get datasets id by name

In workspace avaialbel a lot of datasets, but I need to find datasets id specificly for one datasets by name.

 

$uri = https://api.powerbi.com/v1.0/myorg/groups/$groupId/datasets
$datasets = Invoke-RestMethod -Headers $header -Uri $uri -Method "GET"
$datasetsVal = $datasets.value
$datasetsId = $datasetsVal.id

 

 

 

 Above script return all IDs. but I need get ID by name.

 

Thanks for help 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Currently, there is no suitable REST API to retrieve the dataset ID according to the dataset name. You can search all the datasets under this workspace through the workspace ID, then export the results, and then return the dataset ID according to the dataset name.

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets-in-group

Ailsamsft_0-1639102687367.png

If you are not sure of the workspace ID, you can get the dataset information of the entire organization through the following API, and then retrieve the dataset ID through the dataset name.

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets

Ailsamsft_1-1639102687368.png

Best Regard

Community Support Team _ Ailsa Tao

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Currently, there is no suitable REST API to retrieve the dataset ID according to the dataset name. You can search all the datasets under this workspace through the workspace ID, then export the results, and then return the dataset ID according to the dataset name.

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets-in-group

Ailsamsft_0-1639102687367.png

If you are not sure of the workspace ID, you can get the dataset information of the entire organization through the following API, and then retrieve the dataset ID through the dataset name.

https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/get-datasets

Ailsamsft_1-1639102687368.png

Best Regard

Community Support Team _ Ailsa Tao

nitishsh91
Solution Supplier
Solution Supplier

You can try working it out via PowerShell if you want to

 

https://docs.microsoft.com/en-us/powershell/module/microsoftpowerbimgmt.data/get-powerbidataset?view...

 

You can also try using this API to find all datasets and look for the one that you want:

 

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

 

Get the output from above and then filter out based on name and use that id.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.