I have created a CodeActivity in Visual Studio and added the package to UIPath. My question is, is there a way that i can call a variable in the CodeActivity from UIPath?
Hi
welcome to uipath community
yes of course once the package is uploaded to nuget source
were you facing any issue in that
Cheers @Dewald
I tried using the variable from the package, but it still gives an error that says the variable is not assigned.
Fine
can i have a screenshot of how its used
Cheers @Dewald
Hello @Dewald
you should define a variable in code activity as input/output category like this
**[Category("Input")]**
[RequiredArgument]
public **InArgument<String> FilePath** { get; set; }
and
you can pass variable file in uipath
1 Like
This worked, thank you @sandeep13
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.