Skip to content

[Bug]: Button action not passing Toast content to the event #288

Description

@irefuse

Checklist

  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have, to the best of my knowledge, that this isn't an environmental issue (Sorry, we can't help troubleshoot your infrastructure).

Steps to Reproduce

On v1.0.0+, if you submit a toast notification with an activated action, the Toast content XML does not get passed to the event's $Event variable as it did in v0.8.5.

Expected Behavior

Expecting the Toast's XML content to be available so that I can pull specific information from the toast to use in the Event processing.

Actual Behavior

There is very minimal information available once the event variable is executed compared to v0.8.5

v1.1.0 SourceArgs Output

PS C:\Users\user\Documents> $BTTestV110.SourceArgs

Argument     UserInput
--------     ---------
CopyItemName {}

v0.8.5 SourceArgs Output

PS C:\Users\user\Documents> $BTTestv085.SourceArgs

Content                    : Windows.Data.Xml.Dom.XmlDocument
Data                       :
ExpirationTime             :
ExpiresOnReboot            : False
Group                      :
NotificationMirroring      : Allowed
Priority                   : Default
RemoteId                   :
SuppressPopup              : False
Tag                        :
NativeObject               : WinRT.ObjectReference`1[WinRT.Interop.IUnknownVftbl]
HasUnwrappableNativeObject : True
AdditionalTypeData         : {}

Arguments                  : CopyItemName
UserInput                  : {}
NativeObject               : WinRT.ObjectReference`1[WinRT.Interop.IUnknownVftbl]
HasUnwrappableNativeObject : True
AdditionalTypeData         : {}

Experience with Toast

Beginner

Environment data: PowerShell

Name                           Value
----                           -----
PSVersion                      7.5.5
PSEdition                      Core
GitCommitId                    7.5.5
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Environment data: OS

OsName         : Microsoft Windows 10 Pro
OsVersion      : 10.0.19045
OsArchitecture : 64-bit

Environment data: BurntToast

Directory: C:\Program Files\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.1.0                 BurntToast                          Desk      {Get-BTHeader, Get-BTHistory, New-BTAct…
Script     0.8.5                 BurntToast                          Desk      {Get-BTHistory, New-BTAction, New-BTApp…

Consent to Attribution

  • Please shout me out if I've inspired a blog post!

Metadata

Metadata

Assignees

Labels

status: triageNeed to be assessed for validity and prioritytype: bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions