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

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors