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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
abasupowerbi
New Member

Unable to render Embedded Power BI report in an external Java based application

Hi, we are trying to embed Power BI reports in an external application (Guidewire, a Java based product). We are using 'app owns data' with ServicePrincipal so non Power BI users can see the report. 

We made 3 REST API calls succesfully to get Azure AD Token first, and then the Embed URL, Embed Token & Expiration for a report in a workspace. How do we construct an URL with the respone below to succefully render the report in a separet browser window? 

{
"embedReports": [
{
"embedUrl": "https://app.powerbi.com/reportEmbed?reportId=1da56d35-5834-454d-913f-1765785e362c&groupId=a8c229ea-5...",
"reportId": "1da56d35-5834-454d-913f-1765785e362c",
"reportName": "US Sales Analysis"
}
],
"tokenExpiry": "2022-02-02T03:12:32Z",
"embedToken": "H4sIAAAAAAAEACWTt660aAIF3-WmrIR3K_0BHrppvM_wvnEfdjTvvndn8orq1Pnrx0rvYUqLn__-IC9uqUh-z3MGupfC9YP2yVJABTlT4_OL4Lq1X41BP7piCj8dmDozweucaNZX9-6mFjNlkZs-QTlWpUIvbzhfDHg_UJacPS2f0XrgME7uhvUOfMkQH5l_NYe2XegZF1l2veOEGWuXNLe7scB3fuZQGLP4QcrbHJbTwc8irnGsZ1ZWr2pKi3M-9LTHQPVdgRats4pZMxqka_jN4-GSfrjbKsTB9vv24s4BSS9qv_CCyD-rhSJJ60LvNjYyNoQ_MhmgwsGBjBAltK-8yo6h8kCa91kR7pmyay2OUFAMurMpdzmMHYIk3jfaBw16JLGClIrNTwxKPvwuTbFiye2QUtHD7NKdjh8QkHnjuWn6NAhxiW6uCAW6zJHMwKFGFtb8a28Y3ktL9pPKvzkuKeSNM-aBnsmX9lh-oe66zz-iiMy0ir4pzwM8BeErtHUV_SmZzW10aMpdPARcwi-tnHHQ-f3AWFoAL4Xo7FGTg0QEto_P4I4VHd2lLNxpW_2Qzy2dfDus3TLzHjKZbw_uXF4s5VXumh5gO2yKhP7FP4iKlQYR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iOnsibW9kZXJuRW1iZWQiOmZhbHNlfX0="
}

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @abasupowerbi,

You can take all ok at following link about power bi develop code sample for different frameworks if hlep:

GitHub - microsoft/PowerBI-Developer-Samples: A collection of Power BI samples for developer use.
Regards,

Xiaoxin Sheg

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @abasupowerbi,

You can take all ok at following link about power bi develop code sample for different frameworks if hlep:

GitHub - microsoft/PowerBI-Developer-Samples: A collection of Power BI samples for developer use.
Regards,

Xiaoxin Sheg

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.