Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Power BI Embedded override SaveAs event

Following the example in the Power BI playground, I'm using the code below to override SaveAs event:

 

report.off("saveAsTriggered");
report.on("saveAsTriggered", function (event) {
report.off("saveAsTriggered");
console.log(event.detail);
});

 

But for some reason, it doesn' work. The default SaveAs still gets triggered. Can anybody help me?

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    what's missing from the documentation is the part where you have to set `useCustomSaveAsDialog` to true in the settings