Skip to content
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

New-PowerAutomateDoc.ps1 will fail if flow only contains 1 action #11

Closed
acieslik opened this issue Aug 7, 2023 · 1 comment
Closed

Comments

@acieslik
Copy link

acieslik commented Aug 7, 2023

If the flow only contains one action, the $Actions variable in the Sort-Action function will not be an array and thus has no Count property.

Sort-Action : The property 'Count' cannot be found on this object. Verify that the property exists.
At C:\Repos\github\logicappdocs\src\New-PowerAutomateDoc.ps1:195 char:1

  • Sort-Action -Actions $objects
  •   + CategoryInfo          : NotSpecified: (:) [Sort-Action], PropertyNotFoundException
      + FullyQualifiedErrorId : PropertyNotFoundStrict,Sort-Action
    
@stefanstranger
Copy link
Owner

stefanstranger commented Aug 8, 2023

Fixed the issue, will be part of next release.

Fix in Helper.ps1 script.

# Turn input into an array. Otherwise count will not work.
    $Actions = @($Actions)

Is in branch called powerautomateissues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants