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:  7/30/2026 5:04:19 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.4402.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 'Cancelled' then 4
        when 'Declined' then 5
        else -1
        end 

end