-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path6_Update.ps1
More file actions
18 lines (11 loc) · 713 Bytes
/
6_Update.ps1
File metadata and controls
18 lines (11 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$Id = 'DemoUpdate'
$DataBinding = @{
HeadingPlaceholder = 'Demo Update'
TextPlaceholder = 'This is the first example line of text'
}
New-BurntToastNotification -Text 'HeadingPlaceholder', 'TextPlaceholder' -UniqueIdentifier $Id -DataBinding $DataBinding
$DataBinding['TextPlaceholder'] = 'This is the second example line of text'
Update-BTNotification -UniqueIdentifier $Id -DataBinding $DataBinding -ErrorAction SilentlyContinue
$DataBinding['TextPlaceholder'] = 'This is the third example line of text'
Update-BTNotification -UniqueIdentifier $Id -DataBinding $DataBinding -ErrorAction SilentlyContinue
# Turns out there's an issue with this... https://github.com/Windos/BurntToast/issues/120