Skip to content

Unable to trigger a virtual connection refresh using tsc package #1661

@Oliverdong915

Description

@Oliverdong915

Request Type

Not sure which type, but I feel like a type 3 cause I tried many different approaches but still not able to trigger a virtual connection.

Type 1: support a REST API:
If it is functionality that already exists in the REST API, example API calls are the clearest way to explain your request.

Type 2: add a REST API and support it in tsc.
If it is functionality that can be achieved somehow on Tableau Server but not through the REST API, describe the current way to do it. (e.g: functionality that is available in the Web UI, or by using the Hyper API). For UI, screenshots can be helpful.

Type 3: new functionality
Requests for totally new functionality will generally be passed to the relevant dev team, but we probably can't give any useful estimate of how or when it might be implemented. If it is a feature that is 'about' the API or programmable access, here might be the best place to suggest it, but generally feature requests will be more visible in the Tableau Community Ideas forum and should go there instead.

Description

In tableau cloud, we use virtual connection as data source. These virtual connections are aimed to be trigger once the underlying data source in data warehouse got trigger in our orchestration tool. I tried server.datasources.refresh() as suggested on this link: https://tableau.github.io/server-client-python/docs/api-ref#data-sources:~:text=CreateNew%27)%0A%0A%20%20%20%20...-,datasources.refresh,-datasources.refresh. But a virtual connection does not belongs to a data sources under tableauserverclient.Server, so this method doesn't work out. I also tried using task id, virtual connection id and workbook id to trigger a task, but I can't find any relationship between these ids in order to trigger a virtual connection.

please see my script below:
test.ipynb

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions