How to Return a value after invoking workflow from command line

Hello, I’d like to ask how to structure my workflow so that it returns a value after I invoked it from the command line.

What happens is that after I invoke my *.xaml from the command line, it returns a {}.
I want to be able to change that to some value after execution.

This is the command I invoked from the command line:
c:\>C:\Users\911807\AppData\Local\UiPath\app-19.6.0\UiRobot.exe -f C:\Users\911807\Documents\UiPath\Ref\Main.xaml

What activity are you using to capture the value?

hello @East_Mael

i have small example below which will some idea about how to execute commands in “CMD”

try It :slight_smile:commandLine.xaml (4.3 KB)

Regards
Ajay

Hi @East_Mael

Welcome to the community forum!

cheers
Happy learning

Specify a new argument in the uipath script being called, with the direction set as out. Then invoke it from the command line.

1 Like