- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Creating Scorecard via Rest Api does not return Dataset right away
Hello,
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Subject | Author | Posted | |
---|---|---|---|
09-26-2024 01:16 AM | |||
08-16-2024 10:21 AM | |||
08-20-2024 11:47 PM | |||
09-10-2024 05:03 AM | |||
03-27-2024 04:31 AM |