2 Replies Latest reply on Aug 6, 2019 8:49 AM by LI Guanlian

    如何利用Python 获得 tableau server上的单个工作簿下视图名称及视图链接(url的链接)?

    LI Guanlian

      # import tableauserverclient as TSC

      # server = TSC.Server('https://SERVERURL')
      #
         ...

      # get the workbook item
        workbook = server.workbooks.get_by_id('1a1b1c1d-2e2f-2a2b-3c3d-3e3f4a4b4c4d')


      # get the view information
        server.workbooks.populate_views(workbook)

      # print information about the views for the work item
        print("\nThe views for {0}: ".format(workbook.name))
        print([view.name for view in workbook.views])

       

       

      用这个方法可以获得当个工作簿下的视图名称,如果需要获得视图链接,想请各位大神帮忙支持下