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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
jaryszek
Post Prodigy
Post Prodigy

How to measure time of report uploading using REST APIs?

Hello,

this is my rest api which i am using to upload report:

 

# https://learn.microsoft.com/en-us/rest/api/power-bi/imports/post-import-in-group

# Use the PowerBiCostMgmtApp1 Rest Client environment for the CostMgmt1 tenant.

# @name getGroups
GET https://api.powerbi.com/v1.0/myorg/groups?$filter=name%20eq%20'{{groupName}}'
Authorization: Bearer {{$aadV2Token appOnly}}

### 

# Remember to update importId with the returned import ID.

@groupId = {{getGroups.response.body.$.value[0].id}}

POST https://api.powerbi.com/v1.0/myorg/groups/{{groupId}}/imports?datasetDisplayName={{fileDisplayName}}
Authorization: Bearer {{$aadV2Token appOnly}}
Content-Type: multipart/form-data; boundary=MfnBoundry

--MfnBoundry
Content-Disposition: form-data; name="files"; filename="{{filename}}"
Content-Type: application/octet-stream

< ./{{filename}}
--MfnBoundry--

 

how to measure time of it? I know that i can check import Id status if this is finished but i need whole time of uploading...

Thanks,
Jacek

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There's nothing else available beyond the polling you are already doing.

 

If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com

View solution in original post

14 REPLIES 14
v-nmadadi-msft
Community Support
Community Support

Hi @jaryszek ,

Could you please confirm if you've submitted this as an idea in the Ideas Forum? If so, sharing the link here would be helpful for other community members who may have similar feedback.

If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum  we’ll be happy to assist.

Thank you for being part of the Microsoft Fabric Community.

v-nmadadi-msft
Community Support
Community Support

Hi @jaryszek ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

Hi,

issue is not solved. There is no option to do this and this totally sucks. 

Hi @jaryszek ,

We really appreciate your efforts and for letting us know the update on the issue.
As mentioned by @lbendlin, Please consider sharing your suggestion in the Power BI Ideas forum, where the product team actively monitors user feedback. Ideas with strong community support are more likely to be considered for future implementation. Posting there helps ensure your request reaches the right audience and contributes to shaping the product roadmap.

Please continue using fabric community forum for your further assistance.

Thank you

 

v-nmadadi-msft
Community Support
Community Support

Hi @jaryszek,
Thanks for reaching out to the Microsoft fabric community forum.

Using REST API’s we can get report data sources, report data dependent items,  report history snapshots, report parameter definitions or various other things

vnmadadimsft_0-1744691486089.png

 

 

vnmadadimsft_1-1744691486091.png

 


but currently it is not possible to get the time when the report was uploaded.
Please refer to this article to explore the available options and try out the ones that best suit your specific requirements.: Reports - REST API (Power bi report) | Microsoft Learn

If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards


Ok so if you have report which take 30 min to upload how to automate workflow to refresh it after? 

how people solve it?

Best,
Jacek

Set a refresh schedule before the upload. That will result in an automatic refresh attempt after the upload completes.

Ok but if report is not uploaded, i will get failure? What then? 

correct the issue and try again?

My workflow for customer should ends after uploading and refreshing report. 

So the sequence of rest apis will create workspace, upload report and refresh after updating. 
If refresh lasts 30 min i need to know it somehow to trigger rest api immidietely after it is done. 

Sheduled refresh will not work in this case.

Best,
Jacek

There is no guarantee that a refresh request will be honored. There is no guarantee that a refresh will complete successfully. If a refresh fails you should not automatically retry (looking at you, Microsoft!!!!) but should first investigate and correct the issue.

 

This is not something you can fully automate.

I am catching the whole idea but still if this will check status i could wrap it in some java code not in the loop but waiting for the result and make the action like: If succed--> refresh., if failure --> throw an error and fix the report. 

Not workaround loops and waiting some time to try refresh. 

Best,
Jacek

lbendlin
Super User
Super User

There's nothing else available beyond the polling you are already doing.

 

If this is important to you please consider voting for an existing idea or raising a new one at https://ideas.fabric.microsoft.com

thanks

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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