Is there any kind of criteria for data processed periodically in an New-UDEndpoint and getting that data into the dashboard.
I have some processing script that will populate my dashboard 1 time. However when I wrap it inside a New-UDEndpoint -Schedule $BuildRefresh -Endpoint { Processing Script } the data does not get to the dashboard. I have the New-UDEndpoint outside of the New-UDDashboard.
How are you storing the data returned from the processing script? If you’re not already, you could use the $Cache scope to ensure the data is available everywhere.
That was helpful. I was not aware of the need for $Cache: to have the semicolon.
I had use $CacheDatalist = [System.Collections.Generic.List[pscustomobject]]::new() but once i changed that to
However, now it seems like the New-UDEndpoint that is defined does not run initially and my script that processes the data doesnt run inside the New-UDEndpoint. My dashboard comes back empy. I can tell its not running initially as the dashboard save and restart happens very quick and the dashboard is back up. Its not processing the portion inside the endpoint.
I have
$BuildRefresh = New-UDEndpointSchedule -Every 5 -Minute
New-UDEndpoint -Schedule $BuildRefresh -Endpoint {
<Processing data into $Cache:datalist>
}
EDIT: I have waited at least 10 min and the Endpoint does not seem to run? What am I missing