Flow Designer Action with Powershell Step - How to configure Outputs

Morten Petters1
Mega Contributor

Hi 🙂

I'm trying to prepare for automations using Powershell Steps in Flow Designer\IntegrationHub and I have managed to create a simple step that is already successful in some ways, it's running on the MID Server and executing. But I want to figure out how to configure Outputs in this Action that I'm creating, to get back some specific values. Lets say I just want to retrieve the status of a Service running on a Windows Server. I would like to get only the status back, and not having to parse anything, is that possible?

6 REPLIES 6

jxsaxton421
Tera Guru

The powershell step should have an "output" option. When you test your powershell script that is where you can see your response. 

I believe there was a support ticket open because you the developer had to manually create an output object in the powershell and then write-data to it. But you should see a response that way right

ghoover
Tera Contributor

I know this is an old post, but create an object and write-output while converting to json.  This will return a JSON string to the action that you can parse.