cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
maruboyinarao
Frequent Visitor

Need to get the particular datasetid and report id using rest api filter calls.

In my work space i need to get the particular datasetid and report id using rest api filter calls.

In below ADO[Dev] is my workspace, in that i have two datasets will be there. i need to get the "Embedded_**-DemoIV" datasetid reportid using rest API.

maruboyinarao_0-1636449687553.png

using the "GET https://api.powerbi.com/v1.0/myorg/groups/{groupId}/datasets" api calls i am getting both datasets  information , help me on this to get the right datasetid and report id  information based on the filter.

 

 

 

 

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@maruboyinarao 

https://api.powerbi.com/v1.0/myorg/admin/reports?$filter={$filter}&$top={$top}&$skip={$skip}

 

Try the get datasetasadmin, follow the code with parameters. 

 
 
Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.
maruboyinarao
Frequent Visitor

How can we use filter, any suggentions on that? i tried with below api calls but those are not working.

#Get Workspace Information
$uri = "https://api.powerbi.com/v1.0/myorg/groups?$filter=(name eq '$WorkspaceName')"

 

#Get Report

$uri = "https://api.powerbi.com/v1.0/myorg/groups/$workspaceID/reports?$filter=(name eq '$reportName')"

@maruboyinarao : You need to pass GUID not the description.

 

If this post helps, then please consider Accepting it as the solution, Give Kudos to motivate the contributors.

ponnusamy
Solution Supplier
Solution Supplier

@maruboyinarao : I don't think the current APIs support filter by 'name' of dataset. I would suggest you to pull the details using the API 

 

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

 

And filter out the dataset based on the name

 

  "value": [
    {
      "id": "0c686fd",
      "name": "YOUR DATA SET NAME",
      "addRowsAPIEnabled": false,
      "configuredBy": "",
      "isRefreshable": true,
      "isEffectiveIdentityRequired": false,
      "isEffectiveIdentityRolesRequired": false,
      "isOnPremGatewayRequired": true,
      "targetStorageMode": "Abf",
      "createReportEmbedURL": "",
      "qnaEmbedURL": "2",
      "upstreamDatasets": [],
      "schemaMayNotBeUpToDate": false,
      "users": []
    },

If this post helps, then please consider Accepting it as the solution, Give Kudos to motivate the contributors. 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors