Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

bookmarksManager.getBookmarks fails

Hi, I have a simple test report which I have embedded in a C# project .Net 5.0. The report has one bookmark called "Reset", which clears all filters. The report loads successfully, apart from the bookmark js code on line 73 below, where the error is caught at line 79:

 

 

This is the error message I get:

 

The file powerbi.min.js version: powerbi-client v2.16.5

 

What I want to accomplish is to have all filters in the report being reset (according to the default state of bookmark "Reset") upon startup of the report. Because, when I develop reports, I tend to forget to reset all testing filters I have added before publishing to Power BI Service, so the report users get my testing filters.

 

Hope somebody can help!

 

/E

 

 

 

2 Replies