Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am using the powerbi-client javascript library and working on exporting the underlying data behind a visual. In the 'rendered' event, I can successfuly pull the data and can inspect it in Chrome's debug console.
The problem I have however is that if I write the data to the page just using 'document.write(data)', the result doesn't seem to have any carrige returns or line feeds which are necessary to read into something like Excel.
Is there a way around this?
Hi @stevenamani,
Did you try the demo here? And the source code? You can export a JSON type data.
Best Regards,
Dale
I followed their example on the showcase page:
visuals[i].exportData(models.ExportDataType.Underlying)
.then(function (result) {
console.log(result.data);
})
.catch(function (errors) {
console.log(errors);
});
The result.data is just a long string and result has no other properties. Not sure how I would get JSON from this object.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |