USP_DATAFORMTEMPLATE_PRELOAD_CAMPAIGNHIERARCHYGOAL

The load procedure used by the edit dataform template "Campaign Hierarchy Goal Add Form"

Parameters

Parameter Parameter Type Mode Description
@CAMPAIGNID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@BASECURRENCYID uniqueidentifier INOUT Currency

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_CAMPAIGNHIERARCHYGOAL
                    (
                        @CAMPAIGNID uniqueidentifier,
                        @BASECURRENCYID uniqueidentifier = null output
                    ) as begin
                        set nocount on;

                        select
                            @BASECURRENCYID = CAMPAIGN.BASECURRENCYID
                        from
                            dbo.CAMPAIGN
                        where
                            CAMPAIGN.ID = @CAMPAIGNID;

                        return 0;
                    end