USP_DATAFORMTEMPLATE_PRELOAD_BATCHCOAUPDATEROW
The load procedure used by the edit dataform template "AddressFinder Batch Row Add Form"
Parameters
Parameter | Parameter Type | Mode | Description |
---|---|---|---|
@BATCHID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
@COUNTRYID | uniqueidentifier | INOUT | Country ID |
@COAUPDATEID | uniqueidentifier | INOUT | AddressFinder ID |
@ADDRESSID | uniqueidentifier | INOUT | Address ID |
@CONSTITUENTID | uniqueidentifier | INOUT | Constituent |
@ADDRESSBLOCK | nvarchar(150) | INOUT | Address |
@CITY | nvarchar(50) | INOUT | City |
@STATEID | uniqueidentifier | INOUT | State |
@POSTCODE | nvarchar(12) | INOUT | ZIP |
@NCOARETURN | nvarchar(150) | INOUT | NCOA return code |
@NCOARETURNCODE | tinyint | INOUT | NCOA return code |
@NCOAFOOTNOTE | nvarchar(150) | INOUT | NCOA footnote |
@NCOAFOOTNOTECODE | tinyint | INOUT | NCOA footnote |
@NCOADPVFOOTNOTE | nvarchar(150) | INOUT | NCOA DPV footnote |
@NCOADPVFOOTNOTECODE | tinyint | INOUT | NCOA DPV footnote |
@NCOAMOVEDATE | UDT_FUZZYDATE | INOUT | NCOA move date |
@NCOADMASUPPRESSION | bit | INOUT | NCOA DMA suppression |
@NCOAMAILGRADE | nvarchar(150) | INOUT | NCOA mail grade |
@NCOAMAILGRADECODE | tinyint | INOUT | NCOA mail grade |
@STDADDRESSBLOCK | nvarchar(150) | INOUT | Standardized address |
@STDCITY | nvarchar(50) | INOUT | Standardized city |
@STDSTATEID | uniqueidentifier | INOUT | Standardized state |
@STDPOSTCODE | nvarchar(12) | INOUT | Standardized ZIP |
@STDDPC | nvarchar(8) | INOUT | Standardized DPC |
@STDCART | nvarchar(10) | INOUT | Standardized CART |
@STDLOT | nvarchar(5) | INOUT | Standardized LOT |
@COAADDRESSBLOCK | nvarchar(150) | INOUT | Change of address |
@COACITY | nvarchar(50) | INOUT | Change of address city |
@COASTATEID | uniqueidentifier | INOUT | Change of address state |
@COAPOSTCODE | nvarchar(12) | INOUT | Change of address ZIP |
@COADPC | nvarchar(8) | INOUT | Change of address DPC |
@COACART | nvarchar(10) | INOUT | Change of address CART |
@COALOT | nvarchar(5) | INOUT | Change of address LOT |
@MOVETYPECODE | int | INOUT | Move type |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_PRELOAD_BATCHCOAUPDATEROW
(
@BATCHID uniqueidentifier,
@COUNTRYID uniqueidentifier = null output,
@COAUPDATEID uniqueidentifier = null output,
@ADDRESSID uniqueidentifier = null output,
@CONSTITUENTID uniqueidentifier = null output,
@ADDRESSBLOCK nvarchar(150) = null output,
@CITY nvarchar(50) = null output,
@STATEID uniqueidentifier = null output,
@POSTCODE nvarchar(12) = null output,
@NCOARETURN nvarchar(150) = null output,
@NCOARETURNCODE tinyint = null output,
@NCOAFOOTNOTE nvarchar(150) = null output,
@NCOAFOOTNOTECODE tinyint = null output,
@NCOADPVFOOTNOTE nvarchar(150) = null output,
@NCOADPVFOOTNOTECODE tinyint = null output,
@NCOAMOVEDATE UDT_FUZZYDATE = null output,
@NCOADMASUPPRESSION bit = null output,
@NCOAMAILGRADE nvarchar(150) = null output,
@NCOAMAILGRADECODE tinyint = null output,
@STDADDRESSBLOCK nvarchar(150) = null output,
@STDCITY nvarchar(50) = null output,
@STDSTATEID uniqueidentifier = null output,
@STDPOSTCODE nvarchar(12) = null output,
@STDDPC nvarchar(8) = null output,
@STDCART nvarchar(10) = null output,
@STDLOT nvarchar(5) = null output,
@COAADDRESSBLOCK nvarchar(150) = null output,
@COACITY nvarchar(50) = null output,
@COASTATEID uniqueidentifier = null output,
@COAPOSTCODE nvarchar(12) = null output,
@COADPC nvarchar(8) = null output,
@COACART nvarchar(10) = null output,
@COALOT nvarchar(5) = null output,
@MOVETYPECODE int = null output
)
as
set nocount on;
-- Get country ID for USA
select @COUNTRYID = ID
from dbo.COUNTRY
where USEFORCOAUPDATE = 1;