server-client-python icon indicating copy to clipboard operation
server-client-python copied to clipboard

I wish subscriptions.create( ) supported "messages"

Open Jaunson opened this issue 7 years ago • 4 comments

Big fan of this library - I am currently utilizing it to dynamically update subscriptions on my Company's Tableau Server based upon some business logic (person's title / position). It would be even more awesome if the SubscriptionItem class supported adding a "message" as you can do when you manually create a subscription to a view.

Jaunson avatar Aug 02 '19 18:08 Jaunson

Adding tags. We'll need to add this to the REST API as well.

irwando avatar Aug 02 '19 18:08 irwando

Additionally, it would be beneficial to indicate to not send the subscription if the view is empty, as you can view the web UI.

jorwoods avatar Nov 13 '19 14:11 jorwoods

Hmm. Should my request for "Don't send if view is empty" be a separate issue?

jorwoods avatar Nov 21 '19 19:11 jorwoods

These features were added in 2021: https://github.com/tableau/server-client-python/commit/88a01886b26165bd73bb8c4dd061efa4a3083a44

message The text body of the subscription email message.
content-type Workbook to create a subscription for a workbook, or View to create a subscription for a view.
send-view-if-empty-flag (Optional) Applies to views only. If true, an image is sent even if the view specified in a subscription is empty. If false, nothing is sent if the view is empty. The default value is true.

jacalata avatar May 30 '25 21:05 jacalata