USP_CONSTITUENTRECOGNITIONPROCESS_DELETE

Executes the "Constituent Recognition Process: Delete" record operation.

Parameters

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

Definition

Copy


                    create procedure dbo.USP_CONSTITUENTRECOGNITIONPROCESS_DELETE
                    (
                        @ID uniqueidentifier,
                        @CHANGEAGENTID uniqueidentifier
                    )
                    as 
                        set nocount on;
                        --check deletion rules, if any


                        exec dbo.USP_BUSINESSPROCESS_PARAMETERSETCANBEDELETED 'CONSTITUENTRECOGNITIONPROCESSSTATUS', @ID;

                        exec dbo.USP_BUSINESSPROCESSINSTANCE_DELETE '7616D877-034B-45A2-AB6D-3FCB63157DE2', @ID, @CHANGEAGENTID;

                        exec dbo.USP_CONSTITUENTRECOGNITIONPROCESS_DELETEBYID_WITHCHANGEAGENTID @ID, @CHANGEAGENTID;
                        return 0;