USP_DATAFORMTEMPLATE_EDIT_PARTIALINFORMATIONSEARCHCONSTITUENTBUSINESSOWNERSHIPSELECT
The save procedure used by the edit dataform template "Prospect Quick Search Constituent Business Ownership Company/Mailing Select Edit 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. |
@CONSTITUENTID | uniqueidentifier | IN | Constituent |
@COUNTRYID | uniqueidentifier | IN | Country ID |
@BUSINESSADDRESSBLOCK | nvarchar(150) | IN | Company address block |
@BUSINESSCITY | nvarchar(50) | IN | Company city |
@BUSINESSSTATE | uniqueidentifier | IN | Company state |
@BUSINESSPOSTCODE | nvarchar(10) | IN | Company post code |
@MAILINGADDRESSBLOCK | nvarchar(150) | IN | Mailing address block |
@MAILINGCITY | nvarchar(50) | IN | Mailing city |
@MAILINGSTATE | uniqueidentifier | IN | Mailing state |
@MAILINGPOSTCODE | nvarchar(10) | IN | Mailing post code |
@INFOSOURCECODEID | uniqueidentifier | IN | Info source code ID |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_EDIT_PARTIALINFORMATIONSEARCHCONSTITUENTBUSINESSOWNERSHIPSELECT (
@ID uniqueidentifier,
@CHANGEAGENTID uniqueidentifier = null,
@CONSTITUENTID uniqueidentifier,
@COUNTRYID uniqueidentifier,
@BUSINESSADDRESSBLOCK nvarchar(150),
@BUSINESSCITY nvarchar(50),
@BUSINESSSTATE uniqueidentifier,
@BUSINESSPOSTCODE nvarchar(10),
@MAILINGADDRESSBLOCK nvarchar(150),
@MAILINGCITY nvarchar(50),
@MAILINGSTATE uniqueidentifier,
@MAILINGPOSTCODE nvarchar(10),
@INFOSOURCECODEID uniqueidentifier
)
as
set nocount on;
begin try
if @CONSTITUENTID is null begin
raiserror('Please select a constituent.', 13, 1);
return 1;
end
end try
begin catch
exec dbo.USP_RAISE_ERROR
return 1
end catch
return 0;