UFN_INTERACTION_STATUSCODE_GETID

Return

Return Type
tinyint

Parameters

Parameter Parameter Type Mode Description
@Description nvarchar(12) IN

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  3/28/2016 5:44:35 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.158.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_INTERACTION_STATUSCODE_GETID(@Description nvarchar(12))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Planned' then 0
        when 'Pending' then 1
        when 'Completed' then 2
        when 'Unsuccessful' then 3
        when 'Canceled' then 4
        when 'Declined' then 5
        else -1
        end 

end