UFN_CONSTITUENT_GETPHONES

This function returns a constituent's phone numbers given its ID.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@CONSTITUENTID uniqueidentifier IN

Definition

Copy


        CREATE function dbo.UFN_CONSTITUENT_GETPHONES(@CONSTITUENTID uniqueidentifier)
        returns table
        as return
            select
                ID,
                PHONETYPECODEID,
                NUMBER,
                ISPRIMARY,
                SEQUENCE
                COUNTRYID
            from
                dbo.PHONE
            where
                CONSTITUENTID=@CONSTITUENTID;