UFN_BATCHCONSTITUENTUPDATEPHONES_ROWORIGINCODE_GETID

Return

Return Type
tinyint

Parameters

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

Definition

Copy
/*
Generated by Blackbaud AppFx Platform
Date:  9/30/2015 12:58:02 AM
Assembly Version:  Blackbaud.AppFx.Platform.SqlClr, Version=4.0.153.0, Culture=neutral, PublicKeyToken=null
Copyright Blackbaud
*/
CREATE FUNCTION dbo.UFN_BATCHCONSTITUENTUPDATEPHONES_ROWORIGINCODE_GETID(@Description nvarchar(129))
RETURNS tinyint WITH EXECUTE AS CALLER
AS
begin

    return case @Description
        when 'Unspecified' then 0
        when 'Included in the collection field XML at time of batch save' then 1
        when 'Automatically included by the system during import or matching to correspond to an existing contact row linked to the constituent' then 2
        else -1
        end 

end