Forum Discussion
Anonymous
6 years agoNot applicable
Create Report in Embedded Power BI with GenerateTokenRequestV2
Hi, I have a powerBI embedded into a web application. The app contains a feature to create new reports as well that will save it into a workspace with the specified dataset. The new experience work...
V-lianl-msft
6 years agoCommunity Support
Hi Anonymous ,
What kind of license is your account?Pro?Free?Embeded?
https://azure.microsoft.com/en-us/services/power-bi-embedded/#documentation
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Hi V-lianl-msft ,
The account is provisioned with Powe BI PRO license.
I tried creating the report in the similar way (with shared dataset) in the power BI web app directly and it worked fine, but facing the issue when doing it via embedded mode in our web application.
This is the config I send to the "powerbi-client" library.
{
type: 'report',
tokenType: 1,
accessToken: '__access_token__',
embedUrl 'https://app.powerbi.com/reportEmbed',
datasetId: '__shared_datasetID__',
groupId: '__target_workspaceID__',
}