Apply Dashboard Filter(s)
I need to export dashboard to a pdf doc.
Found this: /dashboards/{id}/export/pdf - that works, but my dashboard has 2 filters on it.
How do i change filter values before exporting?
There is a PATCH method /dashboards/{id} - this looks like it takes filters object and is used to update dashboard properties and such, but no matter what i pass there, it just says 200 OK and gives me object with all dashboard props. Not sure whats wrong.
Any help would be appreciated, thanks!
-
Hi Marcin!
The PATCH endpoint should update the dashboard successfully, after which you can call the export endpoint. Does this not work? Could you share the script (or a redacted version of it)?
Do note that any change done to the dashboard via a PATCH is persisted and will affect the dashboard seen in the UI as well.
If you need a solution for something more advanced, like PDF reporting with set filters that override whatever the user has applied, I suggest getting in touch with Sisense Professional Services as they've got lots of experience with this topic.
Please sign in to leave a comment.
Comments
1 comment