(2.7.0) Show-UDToast -ReplaceToast not working

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?

1 Like

Hi @mieel
Welcome to the UD Forums!

This looks like a bug to me, could you file this on the git of hubs?

1 Like

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

Replace toast works for me as long as I include an ID with my toast.

Show-UDToast 'Hey' -ReplaceToast -Id 'myId'
1 Like