USP_DATAFORMTEMPLATE_EDIT_APPEALCOPYTEAMSETUPEDIT_3
The save procedure used by the edit dataform template "Appeal Copy Team Setup Edit 2 Form".
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@ID | uniqueidentifier | IN | The input ID parameter indicating the ID of the record being edited. |
@CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
@SOURCEAPPEALID | uniqueidentifier | IN | Appeal |
@SOURCETEAMID | uniqueidentifier | IN | Team |
@INCLUDETEAMFUNDRAISERS | bit | IN | Include team fundraisers |
@CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDIT_APPEALCOPYTEAMSETUPEDIT_3
(
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier = null,
@SOURCEAPPEALID uniqueidentifier,
@SOURCETEAMID uniqueidentifier,
@INCLUDETEAMFUNDRAISERS bit,
@CURRENTAPPUSERID uniqueidentifier = null
)
as
begin
set nocount on;
begin try
--Change agent is not used in this procedure, leave the check up to the procedure we delegate to
--if @CHANGEAGENTID is null
-- exec dbo.USP_CHANGEAGENT_GETORCREATECHANGEAGENT @CHANGEAGENTID output;
exec dbo.USP_APPEAL_TEAMFUNDRAISINGCOPY
@SOURCEAPPEALID = @SOURCEAPPEALID,
@SOURCETEAMID = @SOURCETEAMID,
@DESTINATIONAPPEALID = @ID,
@CHANGEAGENTID = @CHANGEAGENTID,
@COPYTEAMFUNDRAISERS = @INCLUDETEAMFUNDRAISERS,
@CURRENTAPPUSERID = @CURRENTAPPUSERID,
@FEATUREID = '8C52615F-7BCC-4F6E-9F1A-3821688B3BD5';
end try
begin catch
exec dbo.USP_RAISE_ERROR;
return 1;
end catch
return 0;
end