USP_DATAFORMTEMPLATE_ADD_RELATIONSHIP_STUDENTTOSTUDENT
The save procedure used by the add dataform template "Student To Student Relationship Add Data Form".
Parameters
| Parameter | Parameter Type | Mode | Description |
|---|---|---|---|
| @ID | uniqueidentifier | INOUT | The output parameter indicating the ID of the record added. |
| @CHANGEAGENTID | uniqueidentifier | IN | Input parameter indicating the ID of the change agent invoking the procedure. |
| @CONSTITUENTID | uniqueidentifier | IN | Input parameter indicating the context ID for the record being added. |
| @RECIPROCALCONSTITUENTID | uniqueidentifier | IN | Related individual |
| @RECIPROCALTYPECODEID | uniqueidentifier | IN | Individual is the |
| @RELATIONSHIPTYPECODEID | uniqueidentifier | IN | Student is the |
| @ISSPOUSE | bit | IN | Is spouse? |
| @COPYPRIMARYINFORMATION | bit | IN | Copy primary contact information |
| @SKIP_ADDING_SECURITYGROUPS | bit | IN | Skip adding security groups |
| @SKIP_ADDING_SITES | bit | IN | Skip adding sites |
| @CURRENTAPPUSERID | uniqueidentifier | IN | Input parameter indicating the ID of the current user. |
| @COMMENTS | nvarchar(max) | IN | Comments |
Definition
Copy
CREATE procedure dbo.USP_DATAFORMTEMPLATE_ADD_RELATIONSHIP_STUDENTTOSTUDENT
(
@ID uniqueidentifier = null output,
@CHANGEAGENTID uniqueidentifier = null,
@CONSTITUENTID uniqueidentifier,
@RECIPROCALCONSTITUENTID uniqueidentifier,
@RECIPROCALTYPECODEID uniqueidentifier,
@RELATIONSHIPTYPECODEID uniqueidentifier,
@ISSPOUSE bit = 0,
@COPYPRIMARYINFORMATION bit = 0,
@SKIP_ADDING_SECURITYGROUPS bit = 0,
@SKIP_ADDING_SITES bit = 0,
@CURRENTAPPUSERID uniqueidentifier,
@COMMENTS nvarchar(max) = null
)
as
set nocount on;
exec dbo.USP_DATAFORMTEMPLATE_ADD_RELATIONSHIP_INDIVIDUALRECORDTOIND @ID, @CHANGEAGENTID, @CONSTITUENTID, @RECIPROCALCONSTITUENTID, @RECIPROCALTYPECODEID, @RELATIONSHIPTYPECODEID, @ISSPOUSE, @COPYPRIMARYINFORMATION, @SKIP_ADDING_SECURITYGROUPS, @SKIP_ADDING_SITES, @CURRENTAPPUSERID, @COMMENTS
return 0;