1 Reply Latest reply on Sep 22, 2015 5:00 PM by diego.medrano

    How to get all the filters in a workbook using javascript API?

    Kalyan Chavali

      I'm using the tableau's javascript API.

       

      I'm looking to query all the filters used in a workbook. The solution i have implemented is far from pretty:

       

      1. activating all sheets using a timed loop

      2. getting worksheets in existing dashboard

      3. Using method getFiltersAsync() on worksheets to get the filters in the worksheet.

       

      This approach is taking a significant amount of time, can you please suggest a better way?

       

      I have read in javascript reference that workbook.getPublishedSheetsInfo() method can return dashboard and worksheet objects. However, i quickly learned that this is not the case. (i was unable to use getFiltersAsync or getWorksheets methods)

       

      Can someone suggest how can i get those objects?