USP_CONSTITUENTDUPLICATESEARCHPROCESS_LASTRUNON_UPDATE

Executes the "Constituent Duplicate Search Process Last Run On Record Operation: Update" record operation.

Parameters

Parameter Parameter Type Mode Description
@ID uniqueidentifier IN Input parameter indicating the ID of the record being updated.
@CHANGEAGENTID uniqueidentifier IN Input parameter indicating the ID of the change agent invoking the update.

Definition

Copy


                create procedure dbo.USP_CONSTITUENTDUPLICATESEARCHPROCESS_LASTRUNON_UPDATE
                (
                    @ID uniqueidentifier,
                    @CHANGEAGENTID uniqueidentifier
                )
                as begin
                    --check deletion rules, if any


                    declare @CURRENTDATE datetime = getdate()

                    update dbo.CONSTITUENTDUPLICATESEARCHPROCESS set
                        LASTRUNON = @CURRENTDATE,
                        DATECHANGED = @CURRENTDATE,
                        CHANGEDBYID = @CHANGEAGENTID
                    where
                        ID = @ID

                    return 0;

                end