How to iterate through a Collection(<PSObject>) output obtained from InvokePowerShell Activity

The output of InvokePowerShell activity is of type Collection(), how to iterate through the items using for each activity.

The issue is not with the for each activity, there is an issue in the activities you used in the body @mailsmithash

check those

The ‘Type Argument’ of Invoke powerShell activity was set to the return type of the Variable returned by PowerShell Script. And was able to iterate it. The return type was System.Object of the powershell script variable, the UiPath variable was set with the same type.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.