Please find the attached build and command script MSOnline.zip (2.0 KB)
Objective is to pass credentials (username/password) as parameters. Connect/Authenticate with Microsoft Office 365 and check licenses for particular user.
Getting error by passing credentials from orchestrator
@lukas.macas : I am actually running Powershell commands to connect with MsolService but getting errors.
Have you used passed credentials in invoke powershell activity?
@lukas.macas : I am actually getting error : Connect-MsolService command was found in MSOnline but module could not be loaded. I am passing credentials as per your screenshot.
Could you provide your inputs (as per your shared screenshot).
I have similar scenarios to throw exception : No output and error message in PSOutput after commands execution by bot.
In your screenshot, if condition is actually handling no output scenario. How can I check specific text scenario for my case? PSOutput for my case is in System.Collections.ObjectModel.Collection<system.object>
I have TypeArgument set to String so my Output variable is Collection type and after that I’m checking if PSOutput.Count > 0
In your PS script you need to use Return statement.