I thought I followed the documentation correctly, but I am getting the following error:
Cannot bind argument to parameter 'Icon', because PSTypeNames of the argument do not match the PSTypeName required by the parameter: UniversalDashboard.Icon.
When I use the following code:
New-UDTextbox -Id "alertName" -Icon bell -Value "alertName"
I looked in the console log and only see these:
Jun 24, 2021 11:28 AM Dashboard configuration complete.
Jun 24, 2021 11:28 AM An error occurred: Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
Endpoint: 341730cb-c4af-459b-b34b-89c98fc4c473validate
Session: d0cde3bc-d900-4b68-bd53-65de92207bd8
File:
Endpoint Start Line: 34
Endpoint End Line: 48
Stack Trace: at <ScriptBlock>, <No file>: line 4
Jun 24, 2021 11:28 AM An error occurred: Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
Endpoint: 341730cb-c4af-459b-b34b-89c98fc4c473validate
Session: d0cde3bc-d900-4b68-bd53-65de92207bd8
File:
Endpoint Start Line: 34
Endpoint End Line: 48
Stack Trace: at <ScriptBlock>, <No file>: line 5
Jun 24, 2021 11:30 AM An error occurred: Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
Endpoint: edc950fc-d859-4625-934f-73e51d5727bfvalidate
Session: d0cde3bc-d900-4b68-bd53-65de92207bd8
File:
Endpoint Start Line: 34
Endpoint End Line: 48
Stack Trace: at <ScriptBlock>, <No file>: line 4
Jun 24, 2021 11:30 AM An error occurred: Cannot bind parameter 'Date' to the target. Exception setting "Date": "Cannot convert null to type "System.DateTime"."
Endpoint: edc950fc-d859-4625-934f-73e51d5727bfvalidate
Session: d0cde3bc-d900-4b68-bd53-65de92207bd8
File:
Endpoint Start Line: 34
Endpoint End Line: 48
Stack Trace: at <ScriptBlock>, <No file>: line 5
Product: PowerShell Universal
Version: 2.0.3