Im trying to use the new preview of “Exchange Online V2” as its replacing the old “New-PsSession”
The piece of code im trying to run inside the Invoke Powershell activity is
Connect-ExchangeOnline -Credential $UserCredential -ShowProgress $true
Which stops in UiPath with this error below
“Powershell Invoke: The term ‘Connect-ExchangeOnline’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”
This code works fine in Windows Powershell.
Any help would be appreciated