tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
655 stars 420 forks source link

[TYPE 1] [Set workbook parameter value in REST API call] #1332

Closed AlfredoPalacios closed 3 months ago

AlfredoPalacios commented 8 months ago

Summary

Set the value of view parameters (like vf filtering, but for parameters).

Description

Be able to set the value of a parameter in a view using a method, like the method vf('filter_name', 'filter_Value') but for parameters. In the REST API, the request would look like this: GET /api/api-version/sites/site-id/views/view-id/data?vf_Parameters.=parameter-value

This would allow having only one workbook, but download multiple different view images with different data each one.

jorwoods commented 7 months ago

This is already possible by using ImageRequestOptions.

opts = TSC.ImageRequestOptions()
opts.vf("Parameters.param_name", "parameter_value")
...