USP_RECORDOPERATION_IMPORTPROCESSDELETE

Executes the "Import 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_RECORDOPERATION_IMPORTPROCESSDELETE(@ID uniqueidentifier, @CHANGEAGENTID uniqueidentifier)
                    with execute as caller
                    as
                        set nocount on;

                        exec dbo.USP_BUSINESSPROCESS_PARAMETERSETCANBEDELETED 'IMPORTPROCESSSTATUS', @ID;

                        exec dbo.USP_BUSINESSPROCESSINSTANCE_DELETE 'C5B4AF35-5239-4380-A784-BF2336D9CB7C', @ID, @CHANGEAGENTID;

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