UFN_OPPORTUNITYCAMPAIGN_GETCAMPAIGNS

Returns campaigns tied to an opportunity.

Return

Return Type
table

Parameters

Parameter Parameter Type Mode Description
@OPPORTUNITYID uniqueidentifier IN

Definition

Copy


            create function dbo.UFN_OPPORTUNITYCAMPAIGN_GETCAMPAIGNS
            (
                @OPPORTUNITYID uniqueidentifier
            ) 
            returns table
            as 
            return
                select
                    ID,
                    CAMPAIGNID
                from
                    dbo.OPPORTUNITYCAMPAIGN
                where
                    OPPORTUNITYID = @OPPORTUNITYID