/tableau_write-back_extension

Tableau extension to enable write-back

Primary LanguageJavaScriptOtherNOASSERTION

Tableau Write-back Extension (Tableau Extension API)

Setup and Running Samples

Prerequisites

Setup

1. Rest API

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:

  1. Open the Spreadsheet;
  2. Go to Tools -> Script;
  3. You will see that there is already a script there. This will be your REST API that will get the data from Tableau;
  4. Select Publish > Deploy as web app.
  5. Under Project version, select a new version.
  6. 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).
  7. Under Who has access to the app, select who should be allowed to visit it. Select: "Anyone, even anonymous".
  8. Click Deploy.
  9. 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;
  10. You will get a link like this: https://script.google.com/...
  11. You will need this link to send the Extension endpoint;

2. Tableau Extension

  1. Copy the .trex file from the manifest 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);
  2. Open a command prompt window to the location where you cloned this repo.
  3. Run npm install.
  4. Run npm start.
  5. Launch Tableau and in the Dashoard select the Extension to use.