-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-Action : Cannot bind argument to parameter 'Inputs' because it is null #16
Comments
Hi @acieslik, Thanks for sharing this issue. Fixed this with the following in branch called powerautomateissues Helper.ps1 script # Create PSCustomObject
[PSCustomObject]@{
ActionName = $actionName
RunAfter = $runAfter
Type = $type
Parent = $Parent
ChildActions = $childActions
Inputs = if ($inputs) {Format-HTMLInputContent -Inputs $(Remove-Secrets -Inputs $($inputs | ConvertTo-Json -Depth 10 -Compress))} else {$null}
} In this new branch I also added a new function called Format-HTMLInputContent that fixed issue 9 |
I cannot see that change in any available branch. Am I missing out something? |
I still need to push my local development branch. Going through all the issues to validate if these are now fixed. |
I have a flow that is using a Switch block and does not contain an inputs value:
Then in the Helper.ps1:
$inputs = if ($action | Get-Member -MemberType Noteproperty -Name 'inputs') { $($action.inputs) } else { $null }
$inputs becomes $null
and later it will crash here...
with error:
Get-Action : Cannot bind argument to parameter 'Inputs' because it is null.
At C:\Repos\github\logicappdocs\src\New-PowerAutomateDoc.ps1:137 char:12
+ ´$Objects= Get-Action -Actions $($PowerAutomateFlowJson.properties.de´ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Get-Action], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-Action
The text was updated successfully, but these errors were encountered: