
Tableau Prep Cookbook
By :

Once you have created a flow, you may wish to publish it to Tableau Server or Tableau Online. When you publish a flow, you and others can execute it on-demand with a single click from the Tableau Server interface.
Furthermore, you can increase the transparency of your data flow for your report users, as they will be able to see a diagram of the data flow.
In this recipe, we'll modify a sample flow to output data as a Hyper Extract to Tableau Server, publish the flow to the server, and execute it from the web interface.
To follow along with this recipe, you need access to a Tableau Server instance, either on-premises or with Tableau Online, with the appropriate privileges to publish data sources and flows.
Important note
If you're not sure whether you have the appropriate privileges, you will get an error message when attempting to publish your flow. Contact your Tableau administrator to request that your permissions be modified to allow you to publish data sources and Tableau Prep flows.
Start by opening Tableau, then follow these steps:
Figure 2.44 – Sign in to Tableau Server or Tableau Online
Note that Tableau Prep will not show any confirmation dialog to indicate a successful sign in. However, you can go back to the Server menu and, if you are signed in successfully, you will see the URL of your server in the menu instead of the Sign In option, as shown in the following screenshot:
Figure 2.45 – Sign in to Tableau Server or Tableau Online
Figure 2.46 – Open up the Superstore Sample flow
Figure 2.47 – Change both outputs to Published data source
Figure 2.48 – Publish your flow to Tableau Server
Figure 2.49 – Run your flow on Tableau Server
Figure 2.50 – View the status of your flow
Figure 2.51 – Confirm the outputs have been created
With these steps completed, you've successfully completed this recipe.
In this recipe, we learned how to connect Tableau Prep Builder to your Tableau Server or Tableau Online instance. We published a flow and ran it on the server, with two outputs being written to the server. Publishing flows and data sources to your server is an excellent step toward offering transparency into the data lineage and transformation process to the users of your outputs and all subsequent reports created in Tableau.