Force refresh saved data visualization

Kim Sullivan
Tera Guru

I'm using a Platform Analytics saved visualization in a SOW homepage.  I need a way to force refresh the visualization after a button is clicked.  However, there is no refreshRequested property when you use the saved visualization component.  I've also tried api.data.visualizationname.refresh() in a client script and that also does not work.  Anyone have any ideas?

4 REPLIES 4

Vishal Jaswal
Tera Sage

Hello @Kim Sullivan 

Could you please share the Saved Visualization component's Events tab in UI Builder. 

There are a few things here as I'm updating a list when someone clicks the visualization.

KimSullivan_0-1793281003149.png

 

Hello @Kim Sullivan 

"Refresh requested" (property/input of component) cannot be added to a Saved Visualization because it is not an exposed capability of that component. UI Builder can configure existing component events, but cannot introduce a new refresh input that the component does not support.

My recommendation would be to create a new single score visualization for real-time updates or any other new visualization type and a declarative action to refresh: https://www.servicenow.com/community/next-experience-forum/ui-builder-refresh-single-scores-via-butt... 

Yes, I’ve discovered that as well.  I’d prefer not to have to create visualizations specific to every dashboard.  Hopefully, someone else knows a way to do this or SN adds additional functionality.