USP_DATAFORMTEMPLATE_LOAD_UPDATEMULTIPLECONSTITUENTSFROMMFO
The load procedure used by the edit dataform template "Update Constituents From MatchFinder Online Process Edit Form"
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | uniqueidentifier | IN | The input ID parameter used to load the fields defined on the form. |
| @DATALOADED | bit | INOUT | Output parameter indicating whether or not data was actually loaded. |
| @CONSTITUENTRECORDTYPE | uniqueidentifier | INOUT | Constituent record type |
| @BATCHTEMPLATEID | uniqueidentifier | INOUT | Batch template ID |
| @NAME | nvarchar(100) | INOUT | Name |
| @DESCRIPTION | nvarchar(255) | INOUT | Description |
| @CONSTITUENTSELECTIONID | uniqueidentifier | INOUT | Constituent selection |
| @BATCHOWNERID | uniqueidentifier | INOUT | Batch owner |
| @LIMITRECORDSINBATCH | bit | INOUT | Max records in batch: |
| @MAXRECORDSINBATCH | int | INOUT | Max records in batch |
| @UPDATEORGNAME | bit | INOUT | Organization name |
| @UPDATEALIAS | bit | INOUT | Alias |
| @UPDATEINDUSTRY | bit | INOUT | Industry |
| @UPDATEADDRESS | bit | INOUT | Address |
| @UPDATEPHONE | bit | INOUT | Phone |
| @UPDATEFAX | bit | INOUT | Fax |
| @UPDATEWEBADDRESS | bit | INOUT | Web address |
| @UPDATEMATCHINGGIFTINFORMATION | bit | INOUT | Matching gift information |
| @UPDATECONTACTNAME | bit | INOUT | Contact name |
| @UPDATECONTACTEMAIL | bit | INOUT | Contact email |
| @TSLONG | bigint | INOUT | Output parameter indicating the TSLONG value of the record being edited. This is used to manage multi-user concurrency issues when multiple users access the same record. |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_LOAD_UPDATEMULTIPLECONSTITUENTSFROMMFO
(
@ID uniqueidentifier,
@DATALOADED bit = 0 output,
@CONSTITUENTRECORDTYPE uniqueidentifier = null output,
@BATCHTEMPLATEID uniqueidentifier = null output,
@NAME nvarchar(100) = null output,
@DESCRIPTION nvarchar(255) = null output,
@CONSTITUENTSELECTIONID uniqueidentifier = null output,
@BATCHOWNERID uniqueidentifier = null output,
@LIMITRECORDSINBATCH bit = null output,
@MAXRECORDSINBATCH int = null output,
@UPDATEORGNAME bit = null output,
@UPDATEALIAS bit = null output,
@UPDATEINDUSTRY bit = null output,
@UPDATEADDRESS bit = null output,
@UPDATEPHONE bit = null output,
@UPDATEFAX bit = null output,
@UPDATEWEBADDRESS bit = null output,
@UPDATEMATCHINGGIFTINFORMATION bit = null output,
@UPDATECONTACTNAME bit = null output,
@UPDATECONTACTEMAIL bit = null output,
@TSLONG bigint = 0 output
)
as
set nocount on;
select
@DATALOADED = 1,
@NAME = NAME,
@DESCRIPTION = DESCRIPTION,
@CONSTITUENTSELECTIONID = CONSTITUENTSELECTIONID,
@BATCHOWNERID = BATCHOWNERID,
@LIMITRECORDSINBATCH = LIMITRECORDSINBATCH,
@MAXRECORDSINBATCH = MAXRECORDSINBATCH,
@UPDATEORGNAME = UPDATEORGNAME,
@UPDATEALIAS = UPDATEALIAS,
@UPDATEINDUSTRY = UPDATEINDUSTRY,
@UPDATEADDRESS = UPDATEADDRESS,
@UPDATEPHONE = UPDATEPHONE,
@UPDATEFAX = UPDATEFAX,
@UPDATEWEBADDRESS = UPDATEWEBADDRESS,
@UPDATEMATCHINGGIFTINFORMATION = UPDATEMATCHINGGIFTINFORMATION,
@UPDATECONTACTNAME = UPDATECONTACTNAME,
@UPDATECONTACTEMAIL = UPDATECONTACTEMAIL,
@TSLONG = TSLONG
from dbo.UPDATEMULTIPLECONSTITUENTFROMMFOPROCESS
where ID = @ID;
select @CONSTITUENTRECORDTYPE = ID
from dbo.RECORDTYPE
where upper(NAME) = 'CONSTITUENT';
set @BATCHTEMPLATEID = '900BA52A-07D2-4917-8A50-039F64872D57'; --UpdateMultipleConstituents.Batch
if @MAXRECORDSINBATCH = 0
set @LIMITRECORDSINBATCH = 0;
if @LIMITRECORDSINBATCH = 0
set @MAXRECORDSINBATCH = 0;