Trying to get this code to change the background color of the card randomly every 5 seconds, and it’s not working. Any help would be appreciated. I’m on version 2.3.2 pulled from PoshGallery running Windows 10, Powershell 5.1, and Chrome 72.
A scheduled endpoint isn’t linked to a particular browser session so you can use Get\Set\Sync-UDElement from there. (on a bit of a tangent there is a -Broadcast parameter that should work but it looks like there is a bug there). So what you could do instead is set a $Cache variable and then setup the UI to autorefresh every 5 seconds. Here’s an updated example: