Setup Extension Components
Google Spreadsheet Endpoint
To allow write back data the extension needs an Endpoint to send the data.
To allow a simple deploy you can copy this Google Spreadsheet and configured it to allow the extension to send data to it;
If you need a more detailed step-by-step setup follow the link: Spreadsheet Configuration
After copying the Spreadsheed do the following:
- Open the Spreadsheet;
- Go to Extensions -> Apps Script;
- You will see that there is already a script there. This will be your REST API that will get the data from Tableau;
- Select Deploy -> New deployment.
- Under Description, you can place, for example, "Write-Back Free".
- Under Execute the app as, select whose authorization the app should run with: your account (the developer's) or the account of the user who visits the app (see permissions).
- Under Who has access to the app, select who should be allowed to visit it. Select: "Anyone".
- Click Deploy.
- You will be prompted to allow the application to access your google spreadsheet, if you are not prompted to do it, please run the setup and enable the script to access your spreadsheet;
- You will get a link like this:
https://script.google.com/...
- You will need this link to send the Extension endpoint;
Tableau Extension
- Download the trex file. Use the button
Download Manifest File
- Copy the
.trex
file from the `manifest` folder to...\My Tableau Repository\Extensions`
so they are available to Tableau (This is not required because you can open it anywhere in your computer, it's just to keep this clean); - Launch Tableau and in the Dashoard select the Extension to use.
Extension Configuration
When you run the extension for the first time a Configuration Menu will Pop Up;
- "Select the Worksheet" from where you want to get the data to see in the extension;
- "Endpoint URL": Add your URL where, if you used the Google Spreadsheet add the
https://script.google.com/...
here; - "Select the Spreadsheet": If you are using Google Spreadsheet this will set the Sheet name;
- "Add Columns": This allows you to add new columns to the Extension Table like comments that you want to add;
- When you are done just it the "Submit" Button;