Skip to main content

Hi all, does anyone have experience using TabCMD and scheduled tasks?

 

I'm looking to automate a series of tasks:

  • open workbook
  • filter workbook
  • export as pdf
  • email pdf to _____
1 respuesta
  1. 27 jul 2020, 12:10

    Hi Kevin,

     

    Yes, I've used this before a few years ago. I set up a batch file to be scheduled using the windows scheduler.

     

    There are two methods, Get URL and Export. You need to use Export if you want to make a pdf of the entire workbook. If you only need to make a PDF of a single view, use the Get URL method. To filter, you pass your filter variables in the URL on both methods. Pay attention to spaces in your field names. You may need to insert a %20 anywhere you have spaces.

     

    For emailing, you'll have a few options that are documented on the web. A popular command line email utility is febootimail.

     

    These days, I pull PDF using Alteryx and the Tableau Rest API. It's easier and if you have Alteryx Server, you can schedule to run.

     

    Keith