Hi,
unfortunately there seems to be no configuration for output parameters in PowerShell script invoke actions. This is much needed to get back calculated values, created logs or whatever else.
The workaround from Daniel is not really convenient:
https://daniels-notes.de/posts/2021/retrieve-ps-variable-value
It would be really nice if one could define input and output parameters like in other automation. In our ESM-tool from Matrix42 the configuration of parameters/variables is described here:
https://help.matrix42.com/030_EAP/020_WFStudio/Matrix42_Workflow_Studio/Delivered_Activities/Matrix42_General_Activities#Invoke_PowerShell
Variables can be set as input, output or in- and output in the direction column. The left name is the variable name for the PS-script. name "value" can be used as $value in the script. And the column "value" contains values or variables of the workflow. This would be the place to put e.g. form fields as source or target. Just to give some idea how it is solved by others. It can surely be handled nicer than this.
Another approach would be to have a local (app) or global (system settings) PS-script library to put the script code. WEBCON BPS could than create a user defined REST API endpoint with in- and output parameters on-the-fly and instead of invoking PS scripts one could invoke a REST API internal PS endpoint as new action.
I'm sure that you will have much better ideas on base of this user voice.
Kind Regards
Sébastien