question

Shreyas2785 avatar image
0 Votes"
Shreyas2785 asked AmosWu-MSFT commented

Change Power BI report Theme from SharePoint Server Object Model (c#)

We have certain reports in Power BI report server and those are embedded in SharePoint On prem site.
There are certain report themes in report server and we have a requirement to select those themes from SharePoint code (c# server code)

Please let me know if this is possible

office-sharepoint-server-development
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AmosWu-MSFT avatar image
0 Votes"
AmosWu-MSFT answered AmosWu-MSFT commented

The key point of the Server Object Model is that you can use it to do in code everything (and more) that you can do with the SharePoint UI, whether through the browser, using the command-line tools, or with Windows PowerShell. So it should not work for the theme of power bi reports.
You could try to change the theme with the JSON file.
Reference:

  1. Apply report themes


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for your response.
Does that mean we cannot change Power BI report themes using c# code or Javascript code? We are using SharePoint On prem.

0 Votes 0 ·

Power Bi is not currently supported here on QnA. They're actively answering questions in dedicated forums here.
https://community.powerbi.com/
You will get more help in that forum. Thank you for your understanding.

0 Votes 0 ·