Flow Designer Action with Powershell Step - How to configure Outputs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-11-2019 12:20 AM
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?
- Labels:
-
Integrations
-
Scripting and Coding
- 5,620 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2021 01:42 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-30-2023 08:09 AM
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.