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

Get Fabric certified for FREE! Don't miss your chance! 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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

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.