Deprecated - This repository will be removed with the Tableau 26.3 release.
The Web Data Connector 3.0 framework is deprecated and will not receive further updates. Migrate to the REST API Connector on Tableau Exchangeâbuilt by Tableau, supports JSON and CSV over HTTP GET, Basic/Bearer/OAuth authentication, and runs on Tableau 2023.3 and later. Note: this connector is extract-only and requires a JDBC driver installation.
đ 2 min read
This topic explains the overall lifecycle of a Tableau Web Data Connector (WDC). We recommend that you understand the content in the Get Started topic before diving into this topic.
A WDC is always run with an associated phase. Tableau loads the connector inside a web browser at different times and in distinct phases. This topic explains each of these phases.
Interactive phase: Interact with the user
In the interactive phase, Tableau launches the connector UI. This is the connectorâs UI. During the interactive phase, the following actions happen:
-
Initialize: The connector is executed
new Connector(onInitialized). -
Get user input: After itâs ready, the connector allows connector-specific input.The connector waits for interaction to be completed by the user. This could be waiting for the user to enter data in a form, waiting for the user to authenticate (for non-OAuth connectorsâOAuth happens before the interactive phase), and more. This is optional, if a connector has no need for user input, it can call
connector.submit()immediately. -
Pass the data: The user data is then passed to the connector in
connector.handlerInputs. Secrets are passed as an object toconnector.secrets. -
Submit: The connector calls the function
connector.submit()to finish the interactive phase.
Data gathering phase: Fetch data from data source
After the interactive phase has been completed, the connector sends the user data to EPS, which triggers the data gathering phase.
In the data gathering phase, the following steps take place:
-
Authenticate (optional): If your connector requires authentication, the pipeline runs the authenticator in the handlers.
-
Retrieve the data: The fetcher handler retrieves the data from the connectorâs data source, according to how and where you have defined it to fetch your data. (data transportation)
The result of the fetch API is passed to the parser handler.
-
Transform the data: The parser handler maps the data to Tableau tables.