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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Michael_Verhoev
New Member

Embedding a PowerBI report (app owns data) to Salesforce will not work

Hello everybody,

 

Our company is attempting to embed a PowerBI report to a Salesforce page. Unfortunately, we are rather new with doing this sort of thing. The following 'guide' was found on github explaining how we are supposed to do this.

https://github.com/PowerBiDevCamp/SalesforceAppOwnsDataEmbedding?tab=readme-ov-file#create-the-azure...

 

We have followed the guide to the letter and checked several times if something was forgotten, but we can not find the problem.

When opening the report, the error is very basic and just says "ERROR FORBIDDEN".

 

Is there somebody that is familiar with this setup and can tell me where the problem might be?

Thanks in advance!

 

1 REPLY 1
v-junyant-msft
Community Support
Community Support

Hi @Michael_Verhoev ,

The "ERROR FORBIDDEN" message you're encountering typically indicates a permissions or authentication issue.
Please ensure that the Azure AD application has been granted sufficient permissions to access the Power BI report. This includes checking if the service principal used has been assigned the necessary roles in Power BI Service.
Embed content in your Power BI embedded analytics application - Power BI | Microsoft Learn
The "ERROR FORBIDDEN" error can also occur if there's an issue with the embed token generation. Verify that the embed token is being generated correctly and that it has not expired.
Power BI embedded analytics overview - Power BI | Microsoft Learn
If your setup involves calling Power BI APIs from client-side code, ensure that CORS settings are correctly configured. Salesforce might block requests due to CORS policy, so it's essential to verify this aspect.

Here's a related official document, check it out to see if it would help:
Embed Power BI content in Salesforce - Power BI | Microsoft Learn

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.