cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
obespalov Frequent Visitor
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

Accepted Solutions
obespalov Frequent Visitor
Frequent Visitor

Re: Embed dataset via API

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
Frequent Visitor

Re: Embed dataset via API

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

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Top Kudoed Authors
Users Online
Currently online: 201 members 2,166 guests
Please welcome our newest community members: