Forum Discussion
Automatically inserting json for push datasets instead of manually typing in the json format.
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.
- Anonymous5 years agoNot applicable
Thanks, lbendlin. Is there an official microsoft tutorial to this? A document I can read about that topic? Thanks. Best regards!
- Anonymous5 years agoNot 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!
- lbendlin5 years agoSuper 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
- Anonymous5 years agoNot applicable
lbendlin: Thank you very much! I will try this tomorrow at work and when it works I mark your answer as the solution to my question.