But all I get back is “-1” : “The answer to the Universe is -1”
The other posts I’m reading and the documentation seems to suggest that the Affected Records attribute is just for calls that do things like INSERT, DELETE, etc. So if there’s some way to get back the Return Code, I’d love to hear about it.
Is there an “Execute Scalar” activity? Where do I get it? In UIPath.Database.Activities, I only see Connect, Disconnect, Execute Non Query, Execute Query, Insert, adn Start Transaction.
No–don’t think so–Execute Query returns a Datatable. It can be used with anything that gives back a rowset (SELECT … and stored procs that include some sort of SELECT … returns rows and columns). I’m looking for something that can deal with a single value returned from the call.
I know in this case, I could re-write my stored proc to use an OUTPUT parameter and that works since this is just a test/poc thing; however, I have real use cases where there’s a stored proc to call that returns a value and I don’t have the option of changing the code.