Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Praneshpk22
New Member

How to Edit and Save Power BI Report embedded in Sharepoint online.

Hi Team,

 

I want to edit and save a Power BI report which is embedded in Sahrepoint Online. What is the possible way to do this?

I have tried Sandbox developer Playground. In that i'm able to get the edit and save option Javascript Code, but no idea how to use that in Sharepoint online.

Thankyou in advance

2 REPLIES 2
Anonymous
Not applicable

Hi @Praneshpk22 ,

Load your existing report in Edit mode. The report must be embedded in the same way the application embeds a regular report, and the view mode must be in Edit. Make sure that you set the parameter to , and that you have the right client permissions.

let config = {
    type: 'report',
    tokenType: models.TokenType.Aad or models.TokenType.Embed,
    accessToken: YourAccessToken,
    embedUrl: YourEmbedUrl,
    id: YourEmbedReportId,
    permissions: models.Permissions.All,
    viewMode: models.ViewMode.Edit,
};

// Grab the reference to the div HTML element that will host the report
let embedContainer = $('#embedContainer')[0];

// Embed report
let report = powerbi.embed(embedContainer, config);

Here is the official link:

Create, edit, and save an embedded report | Microsoft Learn

Best Regards,

Xianda Tang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

mjsystemss
Helper I
Helper I

Can you use the web connection in Power BI Desktop to connect to the Sharepoint site. Then Edit the share point URL up to ?. Remove the ? too and try connecting to the share point site if that is what you want to achieve. You will be able to connect and have the report PBIX format.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.