Hello,
I'm new to Power Automate Desktop, I was wondering how to pass input arguments when triggering the flow by command line.
I successfully triggered the flow using the generated URL, and I successfully passed some arguments as strings as well using the following syntax (the syntax in official docs didn't work for me):
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Start-Process \"ms-powerautomate:/console/flow/run?workflowName=test_flow"&"inputArguments={var1:'test var 1',var2:'test var 2'}"""
I've defined 2 input text variables in the flow and it works just fine.
Now I need to pass a whole JSON object, I know it is possible since I can define a "Custom Object" input variable, but I cannot find the correct syntax.
I tried with the following syntax:
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe -Command "Start-Process \"ms-powerautomate:/console/flow/run?workflowName=test_flow"&"inputArguments={var1:'test var 1',var2:'test var 2', object:{name:'John',surname:'Doe'}}"""
but I keep getting the following error:

Report
All responses (
Answers (