UFN_ADDOPPORTUNITIESPROCESS_OPPORTUNITYSTATUSCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  8/17/2011 2:19:39 PM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=2.91.1535.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_ADDOPPORTUNITIESPROCESS_OPPORTUNITYSTATUSCODE_GETID(@Description nvarchar(16))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Unqualified' then 0
        when 'Qualified' then 1
        when 'Response pending' then 2
        else -1
        end 

end