UFN_INTERACTION_PARTICIPANTS

Returns participants for an interaction.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@INTERACTIONID uniqueidentifier IN

Definition

Copy


            CREATE function dbo.UFN_INTERACTION_PARTICIPANTS(@INTERACTIONID uniqueidentifier)
            returns table
            as return
                select 
                    IP.ID, 
                    IP.CONSTITUENTID,
                    C.KEYNAME,
                    C.FIRSTNAME
                from dbo.INTERACTIONPARTICIPANT IP
                inner join dbo.CONSTITUENT C on IP.CONSTITUENTID = C.ID
                where
                    INTERACTIONID = @INTERACTIONID;