I have a list of objects with many objects in a json file. There are round about 400 objects in that list. It would be impossible to type everything by hand as I always had to do, when I wanted to add a streaming dataset, i.e. when I wanted to push data from my RestAPI to the PowerBI services or PowerBI desktop. Is there a way to just insert that json file as a template for the several values of the streaming Dataset notation instead of manually typing everything? Thanks in advance!
Streaming datasets only accept individual "rows". But in your process (Power Automate or Power Query) you can iterate through your JSON array and push the records one by one.
@lbendlin: But I want to create a streamingdataset via a script and not just write values in an existing streamingdataset. I have one JSON object with over 100 lines. To manually type all in, while creating the streaming dataset in the PowerBI Service would take too long. Your Microsoft document does not describe how to do that, only how to add something to an existing streaming dataset. I already know that. Thanks in advance!
Depending on your SKU you can do this via
@lbendlin: After very long researching I found a Microsoft documentation, which describes how to communicate with the PowerBI rest API with the help of a C# console application, which has to be registered inside the personal azure portal. The documentation can be read under: https://docs.microsoft.com/de-de/power-bi/developer/automation/walkthrough-push-data-create-dataset....
This C# console app works great and I can now create a dataset based on a JSON file. @lbendlin : You just posted a link to the different API instructions, which can be send to the PowerBI rest API. Therefore, it is not the real solution to my question. But, you gave me the hint, that it is in principle posssible to create a dataset with a communication with the PowerBi API. So you get a like for your answer, but I can not mark it as a solution to my question.
Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.
Join our monthly meetings and learning sessions.
We are excited to announce the Power BI Super Users!
100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.