Describe the bug
When a block (in this case a SCOPE block) has an actions key defined, but no values, the recursive call for Get-Actions fails and throws an error.
Add error message
Add the error message output from the PowerShell command:
Get-Action : The property 'Name' cannot be found on this object. Verify that the property exists.
At C:\temp\gooseleggs-logicappdocs\logicappdocs\src\Helper.ps1:105 char:17
+ ... Get-Action -Actions $($action.Actions) -Parent $actionNam ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-Action], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFoundStrict,Get-Action
To Reproduce
Steps to reproduce the behavior:
If possible upload the Logic App Flow or Power Automate Flow code.
Describe the bug When a block (in this case a SCOPE block) has an actions key defined, but no values, the recursive call for Get-Actions fails and throws an error.
Add error message Add the error message output from the PowerShell command:
To Reproduce Steps to reproduce the behavior:
If possible upload the Logic App Flow or Power Automate Flow code.
Section of code that causes the issue:
Expected behavior Should continue to work without throwing an exception
Screenshots If applicable, add screenshots to help explain your problem.
PowerShell version: Run $PSVersionTable command in PowerShell host e.g.
LogicAppDocs version
Additional context Add any other context about the problem here.