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...
gotters
3 years agoResolver I
Thanks for sharing the fix here. I am still having the same issue as your original issue.
In the UI code are you specifying the targetWorkspaceId on the SaveAs call (via the SaveAsTriggered event) or is it enough that your token request includes the target workspace?
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.
- gotters3 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 configsettings: {useCustomSaveAsDialog: true}