KNOWLEDGE BASE

How To Use a URL Parameter With Spaces in tabcmd get


Published: 21 Feb 2013
Last Modified Date: 07 Feb 2017

Question

When passing a Dimension or Parameter in the URL (such as when filtering the view by specifying a Dimension or Parameter in the URL), how to specify a parameter which contains spaces when retrieving the filtered view using tabcmd get.

Environment

Tableau Server

Answer

Encode the space in the URL parameter using %20 (standard HTML character code for a space).

For example, encoded version:
tabcmd get "/views/WorkbookName/ViewName.png?ParameterName=Parameter%20Value&:refresh=y" -f "Output Name.pdf"
Instead of:
tabcmd get "/views/WorkbookName/ViewName.png?ParameterName=Parameter Value&:refresh=y" -f "Output Name.pdf"

Additional Information

Other special characters (such as a period) should also be encoded using standard HTML character code.

Did this article resolve the issue?