UFN_SALESORDERITEMMEMBERSHIP_GETMEMBERS

Returns a collection of members for a sales order item membership.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@SALESORDERITEMMEMBERSHIPID uniqueidentifier IN

Definition

Copy


            CREATE function dbo.UFN_SALESORDERITEMMEMBERSHIP_GETMEMBERS
            (
                @SALESORDERITEMMEMBERSHIPID uniqueidentifier
            )
            returns table
            as
            return
            (
                select
                    ID,
                    MEMBERID,
                    CONSTITUENTID,
                    ISPRIMARY,
                    cast(ISCAREGIVER as bit) as ISCAREGIVER
                from
                    dbo.SALESORDERITEMMEMBER
                where
                    SALESORDERITEMMEMBERSHIPID = @SALESORDERITEMMEMBERSHIPID
            )