Forum Discussion
Automatically inserting json for push datasets instead of manually typing in the json format.
Hello everyone,
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!
best regards
7 Replies
- lbendlinSuper User
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.
- AnonymousNot applicable
Thanks, lbendlin. Is there an official microsoft tutorial to this? A document I can read about that topic? Thanks. Best regards!
- AnonymousNot applicable
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!
- lbendlinSuper User
Depending on your SKU you can do this via
https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postdatasetingroup
or
https://docs.microsoft.com/en-us/rest/api/power-bi/pushdatasets/datasets_postdataset