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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
jaryszek
Impactful Individual
Impactful Individual

Trying to make a call for REST API for rebinding report

Hello, 

I am trying to rebind import mode report to onelake using Visual Code REST API extension.

 

#  rebindReport
POST https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/reports/ee0ec30b-1111-4912-9b26-c24903f4dad8/Rebind
Authorization: Bearer {{$aadV2Token appOnly}}
Content-Type: application/json

{
  "datasetId": "4a25cc9d-c0ee-42bf-1111-a3c7cac3f780"
}

 

 

I tried to use this like that where:

groupId is a source report group id created within app.powerbi service workspace. 

reportId is report id taken from url from the same workspace. 

 

datasetId: datasetID created on fabric workspace on Datalake on OneLake and 

and getting answer:

jaryszek_0-1756995444551.png


what I am missing? Using service principal in both workspases as admin. 
To get groupID within first workspace i am using: 

 

#  getGroupId
GET https://api.powerbi.com/v1.0/myorg/groups?$filter=name%20eq%20'{{groupName}}'
Authorization: Bearer {{$aadV2Token appOnly}}<div><span>which is working without any issues<br /><br />

 

What I am missing?

 

 

1 ACCEPTED SOLUTION
jaryszek
Impactful Individual
Impactful Individual

Hello,
it doesnt matter.

I have done it within 2 different workspaces.
It was a matter of credentials for service principal. 

Best,
Jacek


View solution in original post

2 REPLIES 2
v-pgoloju
Community Support
Community Support

Hi @jaryszek,

 

Thank you for reaching out to the Microsoft Fabric Forum Community.

If your report is in one workspace (classic Power BI cluster) and your dataset is in another (Fabric/OneLake), then the Rebind API will fail with PowerBIEntityNotFound. In that case, you should move or publish the dataset into the same workspace where the report is stored and then run the Rebind API using that workspace’s groupId, reportId, and datasetId.

 

Thanks & Regards,

Prasanna Kumar

jaryszek
Impactful Individual
Impactful Individual

Hello,
it doesnt matter.

I have done it within 2 different workspaces.
It was a matter of credentials for service principal. 

Best,
Jacek


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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