How to get a return value from a C# program?

Omar Abel Lora Rodriguez
Tue, 10 Mar 2026 20:37:50 +0000
General

Hello, as you can see in the image, I have this logic that I’ve seen in other conversations, basically it calls a PowerShell script, who inside makes a dotnet run C# Program. In that C# program I have a logic that returns a DataTable type. But the flow in the Pega Robot Studio, is only possible to return outputs coming from WriteLines or Prints.

Is there a way to get the return of a method and put it in the Result of the StandardOutput and then use it as I need?

3 posts - 2 participants