Hi,
Does anyone know how we can return values from a stored procedure that is doing an insert ?
The table we are insert to has an INDENTITY field, which increments with each insert. We want to pass that back to Blue Prism, so we can use that when accessing the table further down the line.
The stored procedure is set up as follows:
INSERT INTO ABCD.TABCD
( [Surname]
,[DateOfBirth]
)
VALUES
( @insurName
,@indateOfBirth
)
SET @outRequestID = SCOPE_IDENTITY()
From Blue Prism, we are using the 'Data - SQL Server' object', but cannot get it to retrieve the @outRequestID return from the SP and pass it back to the calling process.
Has anyone managed to do this ?