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...
shietpas_cbts
3 years agoFrequent Visitor
gotters I capture the targetWorkspaceId back out of the embedded object within the saveAsTriggered event:
report.on("saveAsTriggered", function (event) {
var targetWorkspaceId = embeddedObject.targetWorkspaceId;This is then passed with report name to my saveAs function that does the actual work.
gotters
3 years agoResolver I
Thanks for the help. I was trying that but my saveAsTriggered was not firing.
just figured out I need to add to config
settings: {
useCustomSaveAsDialog: true
}