USP_DATAFORMTEMPLATE_ADD_CONSTITUENTINTERACTIONNOTE_PRELOAD

The load procedure used by the edit dataform template "Constituent Interaction Note Add Form"

Parameters

Parameter Parameter Type Mode Description
@CURRENTAPPUSERID uniqueidentifier IN Input parameter indicating the ID of the current user.
@AUTHORID uniqueidentifier INOUT Author
@INTERACTIONID uniqueidentifier IN Input parameter indicating the context ID for the record being added.
@HEADERCONTENTKEY nvarchar(50) INOUT

Definition

Copy


                    CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_CONSTITUENTINTERACTIONNOTE_PRELOAD
                    (
                        @CURRENTAPPUSERID uniqueidentifier,
                        @AUTHORID uniqueidentifier = null output,
                        @INTERACTIONID uniqueidentifier,
                        @HEADERCONTENTKEY nvarchar(50) = null output
                    )
                    as begin
                        set nocount on;
                        set @HEADERCONTENTKEY = 'GenericNoteAdd_InteractionNoteHeader';

                        select top 1
                            @AUTHORID = CONSTITUENTID
                        from
                            dbo.APPUSER
                        where
                            ID = @CURRENTAPPUSERID;

                        return 0;

                    end