I’m having some issues with New-UDTable and SelectedRows after updating Powershell Universal to version 2.8.2.
I retrieve the selected rows from the table using a button and Get-UDElement with ‘selectedRows’, this has always worked but after the update fails to do so…
Now when I try to receive the data an error occurs
→ Cannot bind argument to parameter ‘InputObject’ because it is null.
→ Stack Trace:
- Cannot bind argument to parameter ‘InputObject’ because it is null.
I think it’s because you’re trying to pass an object to Show-UDToast and it requires a string. Either try to pipe $value.selectedRows to Out-String or try to return just one property from your table.
Also, you might want to give 2.8.3 nightly a shot. We reverted some code for Get-UDElement that was intended to improve performance but may cause issues like what you are seeing with the table.