Hi!
I have created an stored procedure:
ALTER PROCEDURE [dbo].[sp_RegistrarAccesoSocioEvento]
@IdPersona INT,
@IdEvento INT,
@Puerta INT,
@Resultado INT OUTPUT
AS
BEGIN
SET @Result = 0
BEGIN TRY
INSERT INTO CONTROLACCESOEVENTOS_REGISTROACCESOSSOCIOS
VALUES (@IdPersona, @IdEvento, GETDATE(), @Puerta);
END TRY
BEGIN CATCH
-- Error Manage
IF ERROR_NUMBER() = 2627 -- Unique value violation
BEGIN
SET @Result = -2 -- IdPersona exists
RETURN;
END
ELSE
BEGIN
SET @Result = -1; -- Any other error
THROW;
END
END CATCH
END
I launch the stored procedure with:
UpdateContext({
ResultadoRegistroSocio:
sp_SocioEventos.dbospRegistrarAccesoSocioEvento({
IdPersona: AccesosSociosClub_SelectedRecord.IdPersona;
IdEvento: dropdwn_SeleccionaEvento.Selected.Evento;
Puerta: dropdwn_SeleccionaPuerta.Selected.CodigoPuerta
})
});;
The stored procedure is correctly executed, but I can't read the 'Reusult' output parameter
UpdateContext({
varResultadoProcedimientoAlmacenado:
Value(ResultadoRegistroSocio.OutputParameters.Result)
});;
It returns... nothing!
When I inspect the variables:

It looks like the types are not recognized
Can you help me, please?
NOTE: I Know for this I should use ReturnCode, but this is just an example. Anyway, ReturnCode also does not work