I noticed the ‘ReplaceToast’ parameter on the Show-UDToast cmdlet. Either I misunderstand the function of this parameter or I am not using it right.
Show-UDToast -Id tstSyncDraft -message "Syncing.." -Duration 5000 -ReplaceToast
Do-someting
Show-UDToast -Id tstSyncDraft -message "Sync complete " -Duration 5000 -ReplaceToast
My expectation is that the second toast will replace the first, but it just goes on top of it. What Am I doing wrong?
Hi @AnonymousUser
Welcome to the UD Forums!
This looks like a bug to me, could you file this on the git of hubs?
GitHub
Worth noting:
I’ve replicated this bug on UD version 2.8.1.
Either this is still an issue, or the docs could use to have this function included. @Adam Driscoll
Replace toast works for me as long as I include an ID with my toast.
Show-UDToast 'Hey' -ReplaceToast -Id 'myId'
Adam Driscoll
PowerShell Expert and Developer at Devolutions