UiPath Agents | Input Arguments

I am currently trying to implement Agent Arguments in the “Run Agent” Activity in studio however facing this issue:

  1. I have assigned these variables in the studio workflow:
    • BusinessName(str)
    • BusinessAddress(str)
  2. In my agent I have the same Input Arguments in the data manager panel as string inputs.

However In my studio workflow it throws an error. But in another workflow it shows no errors. (see image below)

@ashton.lalchan

if you are latest version then you can just click on refresh arguments or use run jobs where you dont need to specify in json as well

cheers

Hi I am on 24.10.8. @Anil_G

To my knowledge, Arguments should be there in 24.10 versions but I do not see that.

@ashton.lalchan

you would need more latest version for arguments to come..till then follow below

also if you increase the system packages versions you can use run jobs

cheers

Thanks @Anil_G,

Can you specify what the functions are for though?

I figured my vb is correct with the dictionary creation.

In the example provided, it gives a vb function “Email_Rewriter_Input()”, but for my use-case I am just using inputs to my agents as “BusinessName” and “BusinessAddress”

@Anil_G the format that I have used is:

New Dictionary(Of String, Object) From {
{“BusinessName”, BusinessName},
{“BusinessAddress”, BusinessAddress}
}

but this fails with that error.

@ashton.lalchan

the format needs to be

New <Agentname>_Input with {
.ArgumentName = "value",
.Argument2="value2"
}

cheers

Hi @ashton.lalchan, please check the attached link. Cheers.

The ‘Run Agent’ activity doesn’t work with Studio version 24.10.12 LTS - Agentic Automation - UiPath Community Forum