- You must have Node.js and npm installed. You can get these from http://nodejs.org.
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; After copying the Spreadsheed do the following:
- Open the Spreadsheet;
- Go to Tools -> 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 Publish > Deploy as web app.
- Under Project version, select a new version.
- 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, even anonymous".
- 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;
- Copy the
.trex
file from themanifest
folder to~\Documents\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); - Open a command prompt window to the location where you cloned this repo.
- Run
npm install
. - Run
npm start
. - Launch Tableau and in the Dashoard select the Extension to use.