My experience with this is that the tabcmd get is analagous to the download button within Tableau Server. So in other words, you get what is currently stored up on the server saved version of the workbook with the embedded extracts. If you want to get fresh data, prior to your tabcmd get, can you do a tabcmd refreshextracts? tabcmd Commands
The data is embedded within the workbook, so I can set a schedule to refresh the workbook and then use tabcmd to run the schedule. I was hoping to do it all in one shot, because I don't know how long it will take to refresh the workbook prior to exporting it. Unless there is a way to programmatically see when the refresh has completed to then run a second batch file that does the export. Are you aware of being able to check that outside of looking at Tableau Server admin views?
oh yes. The easiest way to do this is to add a --synchronous tag to the refreshextracts. This will allow the get to wait for the refresh to finish first.
Thank you so much!
For reference in case anyone else is searching.
"\\Tabserver2\d$\Tabcmd\command line utility\tabcmd.exe" refreshextracts --synchronous --project "Test Project" --workbook "Test Workbook"
"\\Tabserver2\d$\Tabcmd\command line utility\tabcmd.exe" get "/workbooks/test_workbook.twbx" -f "D:\temp\Test_Workbook.twbx"