UDTable Refresh

Product: PowerShell Universal
Version: 5.0.6

Hello,
I have some data that I pull into PowerShell Cache daily. I have an “app” with a UDTable, how would I Dynmically or Automatically refersh that tables data with the cache daily?

Here is my app table code

$RVTools_Table_Data = Get-PSUCache -Key “Cache_RVTools_vInfo”

New-UDDashboard -Title ‘Zordon’ -Content {
$Columns = @(
New-UDTableColumn -Property vInfoVMName -Title “VM_Name” -Filter -FilterType AutoComplete -Width 200 -Truncate
New-UDTableColumn -Property vInfoPowerstate -Title “Power” -Filter -FilterType AutoComplete -Width 75 -Truncate
New-UDTableColumn -Property vInfoTemplate -Title “Template” -Filter -FilterType AutoComplete -Width 115 -Truncate
New-UDTableColumn -Property vInfoGuestHostName -Title “HostName” -Filter -FilterType AutoComplete -Width 200 -Truncate
New-UDTableColumn -Property vInfoCPUs -Title “CPUs” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoMemory -Title “Memory” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoNics -Title “Nics” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoPrimaryIPAddress -Title “IPAddress” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoOS -Title “OS” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoOSTools -Title “OS_Tools” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoCluster -Title “Cluster” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoDataCenter -Title “DC” -Filter -FilterType AutoComplete -Truncate
New-UDTableColumn -Property vInfoVISDKServer -Title “VC” -Filter -FilterType AutoComplete -Truncate
)
New-UDTable -Title ‘Zordon’ -Data $RVTools_Table_Data -Columns $Columns -ShowFilter -ShowSearch -Sort -Export -Paging -PageSize 25
}

I still have yet to figure out how to add the tabs/spaces for formatting of the code in these posts, so here is an image.

I’m not exactly clear on all the pieces of the dashboard, but looking at what you have, if you wrap the RVTools job in a scheduled endpoint that refreshes daily, you could then use a UDDynamic element with its -AutoRefresh parameter to refresh the table.