Skip to main content
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.

New Member

Creating Scorecard via Rest Api does not return Dataset right away



I am able to create a scorecard using the Microsoft.PowerBI.Api version 4.18.0 nuget package in a c# application. The response returned from Scorecards.PostWithHttpMessagesAsync does not initially have datasetId populated. I have to wait a couple of seconds and then preform a Scorecards.GetByIDAsync call. This is less than ideal as I would like to store the datasetId for future use.

Here is an example of my code:


I have put a breakpoint after the create, waiting a couple of seconds and then ran the following code and the datasetId is populated.


Is there anything I can do to ensure a datasetId is present on the first call and not do some sort of offloaded process and or thread sleep?


Community Support
Community Support

Hi @jmoore11 ,


As far as I know, Rest API for Score Card is a preview feature in Power BI.

I suggest you to refer to this offical blog to learn more details.


Best Regards,
Rico Zhou


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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


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.