Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
obespalov
Frequent Visitor

Embed dataset via API

I need programatically import user-provided csv to Power BI and send direct link to imported data to user's email.

This is app-owns-data scenario and user is not registered in Power BI service so as I understand this is possible via embedded tools.

I managed to create dataset and add all rows to it from CSV via API but can't find any way to provide result to the user without manual operations.

Ideas I investigated:

Would appreciate any suggestions.

1 ACCEPTED SOLUTION
obespalov
Frequent Visitor

Solved it by embedding dataset as Q&A with

Mode: ResultOnly (Show answer only, use predefined question)

Question: "default"

 

Related APIs:

https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/datasets_generatetokeningroup

URL to embed: https://app.powerbi.com/qnaEmbed as found in playground.

 

It can be tested in playground: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html

 

View solution in original post

1 REPLY 1
obespalov
Frequent Visitor

Solved it by embedding dataset as Q&A with

Mode: ResultOnly (Show answer only, use predefined question)

Question: "default"

 

Related APIs:

https://docs.microsoft.com/en-us/rest/api/power-bi/embedtoken/datasets_generatetokeningroup

URL to embed: https://app.powerbi.com/qnaEmbed as found in playground.

 

It can be tested in playground: https://microsoft.github.io/PowerBI-JavaScript/demo/v2-demo/index.html

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.