namespace TestVacationStage2
{
public class Sum : CodedWorkflow
{
[Workflow]
public int Execute(int Number1, int Number2)
{
// Perform the sum operation
Result = Number1 + Number2;
// Print inside UiPath Output Panel (for debugging)
Console.WriteLine($"The sum of {Number1} and {Number2} is: {Result}");
return Result; // This returns the sum value to the caller
}
}
}
I have created .cs file in UiPath and invoked in invoke workflow and passed Number1 and Number2 as input and Result as Output. But i am not able to get output back out of invoked workflow.
if you want get out of the data from workflow, you must create out argument for output inside of your flow outside of the flow you can assign any variable and you can map it